forked from IHTSDO/snomed-fhir-cds-service
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* WIP high dosage alert * fixed calculation for daily dosage to use BigDecimals datatypes * Vijay, David | fix for warning >=4 * Vijay, David | remove from app.props --------- Co-authored-by: daviemukungi <mukungidavid@gmail.com>
- Loading branch information
1 parent
d17459a
commit 68ace49
Showing
6 changed files
with
140 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
src/main/java/org/snomed/cdsservice/service/medication/dose/SubstanceDefinedDailyDose.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
package org.snomed.cdsservice.service.medication.dose; | ||
|
||
import java.math.BigDecimal; | ||
|
||
public record SubstanceDefinedDailyDose(String atcRouteOfAdministration, float dose, String unit, String atcCode) { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
82 changes: 82 additions & 0 deletions
82
...t/resources/medication-order-select/MedicationRequestBundleWithWarningEqualsOverDose.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
{ | ||
"resourceType": "Bundle", | ||
"id": "be826c54-b905-40fb-bd90-c147a63ae4e8", | ||
"entry": [ | ||
{ | ||
"fullUrl": "https://r4.smarthealthit.org/MedicationRequest/5180e54d-0187-494a-9ca9-9dbfcab90ab6", | ||
"resource": { | ||
"resourceType": "MedicationRequest", | ||
"id": "5180e54d-0187-494a-9ca9-9dbfcab90ab6", | ||
"status": "active", | ||
"intent": "order", | ||
"medicationCodeableConcept": { | ||
"coding": [ | ||
{ | ||
"system": "http://snomed.info/sct", | ||
"code": "317249006", | ||
"display": "Ranitidine (as ranitidine hydrochloride) 150 mg oral tablet" | ||
}, | ||
{ | ||
"system": "http://bahmni.org/cds", | ||
"code": "36939d4e-d325-4819-9c81-91e1a0434f9a", | ||
"display": "Ranitidine (as ranitidine hydrochloride) 150 mg oral tablet" | ||
} | ||
], | ||
"text": "Ranitidine (as ranitidine hydrochloride) 150 mg oral tablet" | ||
}, | ||
"subject": { | ||
"reference": "Patient/618b2992-eec7-45c9-8544-12c9f586b78c" | ||
}, | ||
"encounter": { | ||
"reference": "Encounter/8f1950d4-13cc-4ea5-a9d0-855a4f4b9180" | ||
}, | ||
"authoredOn": "2021-01-15T04:59:42+00:00", | ||
"requester": { | ||
"reference": "Practitioner/96333652-ed28-41d3-bb60-d435f478c8ed" | ||
}, | ||
"reasonReference": [ | ||
{ | ||
"reference": "Condition/e21522b1-8006-4723-8b8d-bda8a575b87e" | ||
} | ||
], | ||
"dosageInstruction": [ | ||
{ | ||
"sequence": 1, | ||
"timing": { | ||
"repeat": { | ||
"frequency": 1, | ||
"period": 3, | ||
"periodUnit": "h" | ||
} | ||
}, | ||
"asNeededBoolean": false, | ||
"doseAndRate": [ | ||
{ | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/dose-rate-type", | ||
"code": "ordered", | ||
"display": "Ordered" | ||
} | ||
] | ||
}, | ||
"doseQuantity": { | ||
"value": 1, | ||
"unit": "Tablet" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"search": { | ||
"mode": "match" | ||
}, | ||
"response": { | ||
"status": "200 OK", | ||
"etag": "W/\"4\"" | ||
} | ||
} | ||
] | ||
} |
File renamed without changes.