generated from IHE/empty-fhir-profile
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
218de7b
commit 7fc7bef
Showing
1 changed file
with
162 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
// In an oncology prescription, in a multiline setting, a prescription with 3 lines is created | ||
// Each line has a unique identifier, and a group identifier that links them together, and additionally a RequestOrchestration. | ||
|
||
Instance: PrescriptionLine1 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line1" | ||
* groupIdentifier | ||
* system = "http://example.com/NamingSystem/prescriptions" | ||
* value = "prescr1" | ||
* status = #active | ||
* intent = #option | ||
* medication.concept = #med1 | ||
|
||
|
||
|
||
Instance: PrescriptionLine2 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line2" | ||
* groupIdentifier | ||
* system = "http://example.com/NamingSystem/prescriptions" | ||
* value = "prescr1" | ||
* status = #active | ||
* intent = #option | ||
* medication.concept = #med1 | ||
|
||
|
||
|
||
Instance: PrescriptionLine3 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line3" | ||
* groupIdentifier | ||
* system = "http://example.com/NamingSystem/prescriptions" | ||
* value = "prescr1" | ||
* status = #active | ||
* intent = #option | ||
* medication.concept = #med1 | ||
|
||
|
||
|
||
|
||
|
||
Instance: RequestOrchestration1 | ||
InstanceOf: RequestOrchestration | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/requestorchestration" | ||
* value = "prescr1" | ||
|
||
* groupIdentifier | ||
* system = "http://example.com/NamingSystem/prescriptions" | ||
* value = "prescr1" | ||
|
||
* status = #active | ||
* action[0].resource = Reference(PrescriptionLine1) | ||
* action[+].resource = Reference(PrescriptionLine2) | ||
* action[+].resource = Reference(PrescriptionLine3) | ||
* intent = #order | ||
|
||
|
||
|
||
// Another prescription in a multiline setting with 2 lines. | ||
// Each line has a unique identifier, and a group identifier that links them together. | ||
|
||
Instance: PrescriptionLine4 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line4" | ||
* groupIdentifier | ||
* system = "http://example.com/NamingSystem/prescriptions" | ||
* value = "prescr2" | ||
* status = #active | ||
* intent = #order | ||
* medication.concept = #med1 | ||
|
||
|
||
|
||
Instance: PrescriptionLine5 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line5" | ||
|
||
* groupIdentifier | ||
* system = "http://example.com/NamingSystem/prescriptions" | ||
* value = "prescr2" | ||
* status = #active | ||
* intent = #order | ||
* medication.concept = #med1 | ||
|
||
|
||
|
||
|
||
// In another setting, a single-line prescription is created. | ||
// RequestOrchestration is not needed in this case. | ||
// GroupIdentifier is optional - but let's add it to see if it works | ||
|
||
Instance: PrescriptionLine6 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line6" | ||
* groupIdentifier | ||
* system = "http://example.com/NamingSystem/prescriptions" | ||
* value = "prescr3" | ||
* status = #active | ||
* intent = #order | ||
* medication.concept = #med1 | ||
|
||
|
||
|
||
|
||
|
||
|
||
// In another setting, 3 prescriptions are created, each with 1 line. | ||
// RequestOrchestration is not needed in this case. | ||
// GroupIdentifier is not present in this case. | ||
|
||
Instance: PrescriptionLine7 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line7" | ||
* status = #active | ||
* intent = #order | ||
* medication.concept = #med1 | ||
|
||
|
||
|
||
Instance: PrescriptionLine8 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line8" | ||
* status = #active | ||
* intent = #order | ||
* medication.concept = #med1 | ||
|
||
Instance: PrescriptionLine9 | ||
InstanceOf: MedicationRequest | ||
* subject.identifier.value = "patient1" | ||
* identifier | ||
* system = "http://example.com/NamingSystem/prescriptionlines" | ||
* value = "line9" | ||
* status = #active | ||
* intent = #order | ||
* medication.concept = #med1 | ||
|