This week, I completed the unit testing and documentations for the FHIR Medication Request custom elements. These are the last sets of components to be created based on my GSoC proposal. I will make the Merge Request to the lh-toolkit web components repo once the Medication Statements are approved.
The Medication Request Resource, covers all the types of medication orders for both inpatient and outpatient use. It contains the instrcutions to patients about the use of a medication such as the dosage, the dispense request, the priority of the request, the request date, the reason for the request, if a substitute can be used etc. I have created components for each of these parts that makes up the whole resource. An example of this is the dispense request component that can be used to get the quantity, duration, validity period of a medication request. The dispense request component was created by creating and bringing together some other components such as fhir-dispenserequest-quantity, fhir-dispenserequest-duration,fhir-dispenserequest-validityperiod and fhir-period.The element is shown below
The next course of action is to use these components to create the LibreHealth ELectronic Health Record PWA based on the design's team prototype.