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.
BS 288 | Mani| throw mismatched exceptions when dose unit doesn't mat…
…ch (#9) * BS 288 | Mani| throw mismatched exceptions when dose unit doesn't match * BS-288 | Mani | Addressed feedback comments * BS-288| Mani | added property to include error message on the responses * BS-288| Mani | updated the error message thrown * BS-288 | Mani | Updated the error message based on desk check comments * BS-288 | Mani | consolidated error messages together
- Loading branch information
1 parent
1a67068
commit d17459a
Showing
4 changed files
with
128 additions
and
9 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
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
src/test/resources/medication-order-select/MedicationRequestBundleWithMismatchedDoseUnits
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": "1145419005", | ||
"display": "Atorvastatin (as atorvastatin calcium) 10 mg oral tablet" | ||
}, | ||
{ | ||
"system": "http://bahmni.org/cds", | ||
"code": "36939d4e-d325-4819-9c81-91e1a0434f9a", | ||
"display": "Atorvastatin (as atorvastatin calcium) 10 mg oral tablet" | ||
} | ||
], | ||
"text": "Atorvastatin (as atorvastatin calcium) 10 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": 3, | ||
"period": 1, | ||
"periodUnit": "mo" | ||
} | ||
}, | ||
"asNeededBoolean": false, | ||
"doseAndRate": [ | ||
{ | ||
"type": { | ||
"coding": [ | ||
{ | ||
"system": "http://terminology.hl7.org/CodeSystem/dose-rate-type", | ||
"code": "ordered", | ||
"display": "Ordered" | ||
} | ||
] | ||
}, | ||
"doseQuantity": { | ||
"value": 10, | ||
"unit": "mL" | ||
} | ||
} | ||
] | ||
} | ||
] | ||
}, | ||
"search": { | ||
"mode": "match" | ||
}, | ||
"response": { | ||
"status": "200 OK", | ||
"etag": "W/\"4\"" | ||
} | ||
} | ||
] | ||
} |