Stream: BRR - Pharmacy model
Topic: MedicationDispense.status debit/credit-model
Tobias Cervin (Dec 12 2019 at 08:08):
We have a debit/credit model in our domain model when it comes to the dispensing of medication from MedicationRequest. This means there will "only" be POST's of MedicationDispense with status either "Registered", "Adjusted" or "Reversed" (freely translated). The problem is I cant really find any natural representation among these native status codes for MD:
-Preparation
-In Progress
-Cancelled
-On Hold
-Completed
-Entered in Error
-Stopped
-Declined
-Unknown
It feels like it is not representing the same thing semantically. Any thoughts or experience on this, would love to hear it!
Jose Costa Teixeira (Dec 12 2019 at 10:27):
The medicationdispense.status is intended to convey the status of the action itself, independent of impact, consequences or context.
Jose Costa Teixeira (Dec 12 2019 at 10:29):
In this case it seems that these are not statuses, rather specific subtypes of dispense
Jose Costa Teixeira (Dec 12 2019 at 10:30):
Without knowing more, my first suggestion would be to use an extension
Jose Costa Teixeira (Dec 12 2019 at 10:31):
If however you want to manage the sub-processes of registration, adjustment or reversal, you might be looking at task.
Jose Costa Teixeira (Dec 12 2019 at 10:34):
In that latter option, appending a task resource to the dispense would mean something like "by the way, this dispense is expected to trigger a reversal action"
Tobias Cervin (Dec 12 2019 at 12:15):
Ah, thank you for quick reply. Will look into Task!
Last updated: Apr 12 2022 at 19:14 UTC