Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add New Bill Type Atomics #9806

Closed
Tracked by #9802
buddhika75 opened this issue Dec 21, 2024 · 2 comments
Closed
Tracked by #9802

Add New Bill Type Atomics #9806

buddhika75 opened this issue Dec 21, 2024 · 2 comments
Assignees

Comments

@buddhika75
Copy link
Member

No description provided.

@buddhika75
Copy link
Member Author

Issue Title: Implement Enumerated Types for Pharmacy Transaction Categories

Description:

The task involves creating new enum entries in our existing BillType enum to handle specific scenarios related to the pharmacy's operations. These scenarios include direct issues, issue requests, and returns of medicines both to inward and theatre patients. The enum values should precisely categorize these operations for better tracking and management within our system.

Requirements:

  1. Direct Issues, Cancellations, and Returns for Inward Patients:

    • Enum values need to reflect transactions related to the direct issuance of medicines to inward patients, along with their cancellations and returns. These transactions are characterized by having no finance transactions and no payments involved.
  2. Direct Issues, Cancellations, and Returns for Theatre:

    • Similar to inward patient scenarios, these enum values will handle medicines issued directly to theatre settings. Each action (issue, cancellation, return) must be clearly defined.
  3. Issue Requests and Cancellations for Inward and Theatre Patients:

    • Handle requests for issues and their cancellations for both inward and theatre patients. These are primarily requests and do not involve actual finance transactions or payments.
  4. Issue to Requests and Their Management for Inward and Theatre Medicines:

    • Focus on issues made to requests specifically for inward and theatre medicines, including the management of cancellations and returns.

Enumeration Values to Implement:

  • Inward Patient Transactions:

    • DIRECT_ISSUE_INWARD_MEDICINE
    • DIRECT_ISSUE_INWARD_MEDICINE_CANCELLATION
    • DIRECT_ISSUE_INWARD_MEDICINE_RETURN
    • ISSUE_REQUEST_INWARD_PATIENTS
    • ISSUE_REQUEST_INWARD_PATIENTS_CANCELLATION
    • ISSUE_TO_REQUEST_INWARD_MEDICINE
    • ISSUE_TO_REQUEST_INWARD_MEDICINE_CANCELLATION
    • ISSUE_TO_REQUEST_INWARD_MEDICINE_RETURN
  • Theatre Transactions:

    • DIRECT_ISSUE_THEATRE_MEDICINE
    • DIRECT_ISSUE_THEATRE_MEDICINE_CANCELLATION
    • DIRECT_ISSUE_THEATRE_MEDICINE_RETURN
    • ISSUE_REQUEST_THEATRE_PATIENTS
    • ISSUE_REQUEST_THEATRE_PATIENTS_CANCELLATION
    • ISSUE_TO_REQUEST_THEATRE_PATIENTS
    • ISSUE_TO_REQUEST_THEATRE_PATIENTS_CANCELLATION
    • ISSUE_TO_REQUEST_THEATRE_PATIENTS_RETURN

@buddhika75
Copy link
Member Author

Update on BillType Enum Values:

We have refined the BillType enum values to accurately represent the complete process flow for the handling of medicines within our system, including direct issues, requests, issuances based on requests, acceptance, and returns. Below is the updated list of enum values reflecting these changes:

// Direct Issue of medicines to inward patients
DIRECT_ISSUE_INWARD_MEDICINE("Direct Issue of Medicines to Inward Patients", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
DIRECT_ISSUE_INWARD_MEDICINE_CANCELLATION("Direct Issue of Medicines to Inward Patients Cancellation", BillCategory.CANCELLATION, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
DIRECT_ISSUE_INWARD_MEDICINE_RETURN("Direct Issue of Medicines to Inward Patients Return", BillCategory.REFUND, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),

// Direct issue of medicines to theatre
DIRECT_ISSUE_THEATRE_MEDICINE("Direct Issue of Medicines to Theatre", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
DIRECT_ISSUE_THEATRE_MEDICINE_CANCELLATION("Direct Issue of Medicines to Theatre Cancellation", BillCategory.CANCELLATION, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
DIRECT_ISSUE_THEATRE_MEDICINE_RETURN("Direct Issue of Medicines to Theatre Return", BillCategory.REFUND, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),

// Requests for inward and theatre patients
REQUEST_MEDICINE_INWARD("Request Medicines for Inward Patients", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
REQUEST_MEDICINE_INWARD_CANCELLATION("Cancel Request Medicines for Inward Patients", BillCategory.CANCELLATION, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
REQUEST_MEDICINE_THEATRE("Request Medicines for Theatre", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
REQUEST_MEDICINE_THEATRE_CANCELLATION("Cancel Request Medicines for Theatre", BillCategory.CANCELLATION, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),

// Issuing based on requests
ISSUE_MEDICINE_ON_REQUEST_INWARD("Issue Medicines on Request to Inward", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
ISSUE_MEDICINE_ON_REQUEST_INWARD_CANCELLATION("Cancel Issue of Medicines on Request to Inward", BillCategory.CANCELLATION, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
ISSUE_MEDICINE_ON_REQUEST_THEATRE("Issue Medicines on Request to Theatre", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
ISSUE_MEDICINE_ON_REQUEST_THEATRE_CANCELLATION("Cancel Issue of Medicines on Request to Theatre", BillCategory.CANCELLATION, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),

// Acceptance of issued medicines
ACCEPT_ISSUED_MEDICINE_INWARD("Accept Issued Medicines Inward", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
ACCEPT_ISSUED_MEDICINE_THEATRE("Accept Issued Medicines Theatre", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),

// Returns and handling at pharmacy
RETURN_MEDICINE_INWARD("Return Medicines Inward", BillCategory.REFUND, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
ACCEPT_RETURN_MEDICINE_INWARD("Accept Returned Medicines Inward", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
RETURN_MEDICINE_THEATRE("Return Medicines Theatre", BillCategory.REFUND, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),
ACCEPT_RETURN_MEDICINE_THEATRE("Accept Returned Medicines Theatre", BillCategory.BILL, ServiceType.INWARD_SERVICE, BillFinanceType.NO_FINANCE_TRANSACTIONS, CountedServiceType.INWARD, PaymentCategory.NO_PAYMENT),

These updates ensure our system will handle each type of transaction uniquely and accurately, from initial request through processing and return. This granularity will help in better managing our inventory and providing accurate financial and operational reports.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant