diff --git a/input/fsh/aliases.fsh b/input/fsh/aliases.fsh index 9df981c9..4a466a3d 100644 --- a/input/fsh/aliases.fsh +++ b/input/fsh/aliases.fsh @@ -5,3 +5,4 @@ Alias: $snomed = http://snomed.info/sct // SNOMED CT Alias: $bcp47 = urn:ietf:bcp:47 // BCP47 Alias: $sms = https://spor.ema.europa.eu/v2/SubstanceDefinition // EMA SPOR Substance Management System Alias: $ingredient-role = http://hl7.org/fhir/ingredient-role // Codes are from EMA SPOR +Alias: $timing = http://hl7.org/fhir/event-timing // FHIR Event Timing diff --git a/input/fsh/examples/prescriptions/multiitem-requests.fsh b/input/fsh/examples/prescriptions/multiitem-requests.fsh new file mode 100644 index 00000000..ca4a8b3f --- /dev/null +++ b/input/fsh/examples/prescriptions/multiitem-requests.fsh @@ -0,0 +1,70 @@ +// How to say "start all three on the same day without specifying the date?" +// How to distinguish if all three need to be dispensed at the same time or administered at the same time or started at the same time? + +Instance: 100-3-medication-prescription-request1 +InstanceOf: IHEMedicationPrescription +Usage: #example +Description: "A prescription item (MedicationRequest) that is a part of a three-item-prescription (42-day treatment cycle). Generic. Thalidomide 50mgx4 once a day before bed for 42 days." + +* identifier.value = "100-1/3" +//* identifier.system = "" +* groupIdentifier.value = "100" +* status = #active +* intent = #order +* authoredOn = "2024-10-03" +* requester = Reference(Doctor1) +* medication.concept = $snomed#376255008 "Thalidomide 50 mg oral capsule" +* subject = Reference(Patient1) +* reason.concept = $snomed#109989006 "Multiple myeloma" +* dosageInstruction[0].doseAndRate.doseQuantity = 4 $snomed#732936001 "Tablet" +* dosageInstruction[=].timing.repeat.frequency = 1 +* dosageInstruction[=].timing.repeat.period = 1 +* dosageInstruction[=].timing.repeat.periodUnit = $ucum#d "day" +* dosageInstruction[=].timing.repeat.when = $timing#EVE.late "Late Evening" +* dosageInstruction[=].timing.repeat.boundsDuration = 42 $ucum#d "day" + + +Instance: 100-3-medication-prescription-request2 +InstanceOf: IHEMedicationPrescription +Usage: #example +Description: "A prescription item (MedicationRequest) that is a part of a three-item-prescription (42-day treatment cycle). Generic. Melphalan 2mgx4 once a day for 4 days in the beginning of cycle." + +* identifier.value = "100-2/3" +//* identifier.system = "" +* groupIdentifier.value = "100" +* status = #active +* intent = #order +* authoredOn = "2024-10-03" +* requester = Reference(Doctor1) +* medication.concept = $snomed#326766003 "Melphalan 2 mg oral tablet" +* subject = Reference(Patient1) +* reason.concept = $snomed#109989006 "Multiple myeloma" +* dosageInstruction[0].doseAndRate.doseQuantity = 4 $snomed#732936001 "Tablet" +* dosageInstruction[=].timing.repeat.frequency = 1 +* dosageInstruction[=].timing.repeat.period = 1 +* dosageInstruction[=].timing.repeat.periodUnit = $ucum#d "day" +//* dosageInstruction[=].timing.repeat.when = $timing#EVE.late "Late Evening" +* dosageInstruction[=].timing.repeat.boundsDuration = 4 $ucum#d "day" + + +Instance: 100-3-medication-prescription-request3 +InstanceOf: IHEMedicationPrescription +Usage: #example +Description: "A prescription item (MedicationRequest) that is a part of a three-item-prescription (42-day treatment cycle). Generic. Prednisone 50mgx3 once a day for 4 days in the beginning of cycle." + +* identifier.value = "100-3/3" +//* identifier.system = "" +* groupIdentifier.value = "100" +* status = #active +* intent = #order +* authoredOn = "2024-10-03" +* requester = Reference(Doctor1) +* medication.concept = $snomed#374072009 "Prednisone 50 mg oral tablet" +* subject = Reference(Patient1) +* reason.concept = $snomed#109989006 "Multiple myeloma" +* dosageInstruction[0].doseAndRate.doseQuantity = 3 $snomed#732936001 "Tablet" +* dosageInstruction[=].timing.repeat.frequency = 1 +* dosageInstruction[=].timing.repeat.period = 1 +* dosageInstruction[=].timing.repeat.periodUnit = $ucum#d "day" +//* dosageInstruction[=].timing.repeat.when = $timing#EVE.late "Late Evening" +* dosageInstruction[=].timing.repeat.boundsDuration = 4 $ucum#d "day" \ No newline at end of file