@prefix fhir: .
@prefix rdfs: .
# - resource -------------------------------------------------------------------
[] a fhir:StructureMap;
fhir:Resource.id [ fhir:value "supplyrequest-transform"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ]
];
fhir:StructureMap.url [ fhir:value "http://hl7.org/fhir/StructureMap/supplyrequest-transform"];
fhir:StructureMap.name [ fhir:value "Transform from an ActivityDefinition to a SupplyRequest"];
fhir:StructureMap.status [ fhir:value "draft"];
fhir:StructureMap.experimental [ fhir:value "true"];
fhir:StructureMap.structure [
fhir:index 0;
fhir:StructureMap.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/activitydefinition" ];
fhir:StructureMap.mode [ fhir:value "source" ]
], [
fhir:index 1;
fhir:StructureMap.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/supplyrequest" ];
fhir:StructureMap.mode [ fhir:value "target" ]
];
fhir:StructureMap.group [
fhir:index 0;
fhir:StructureMap.name [ fhir:value "main" ];
fhir:StructureMap.typeMode [ fhir:value "none" ];
fhir:StructureMap.input [
fhir:index 0;
fhir:StructureMap.name [ fhir:value "source" ];
fhir:StructureMap.type [ fhir:value "ActivityDefinition" ];
fhir:StructureMap.mode [ fhir:value "source" ]
], [
fhir:index 1;
fhir:StructureMap.name [ fhir:value "target" ];
fhir:StructureMap.type [ fhir:value "SupplyRequest" ];
fhir:StructureMap.mode [ fhir:value "target" ]
];
fhir:StructureMap.rule [
fhir:index 0;
fhir:StructureMap.name [ fhir:value "status" ];
fhir:StructureMap.source [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "source" ];
fhir:StructureMap.element [ fhir:value "id" ];
fhir:StructureMap.variable [ fhir:value "a" ]
];
fhir:StructureMap.target [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "target" ];
fhir:StructureMap.contextType [ fhir:value "variable" ];
fhir:StructureMap.element [ fhir:value "status" ];
fhir:StructureMap.transform [ fhir:value "evaluate" ];
fhir:StructureMap.parameter [
fhir:index 0;
fhir:StructureMap.value [ fhir:value "'draft'" ]
]
]
], [
fhir:index 1;
fhir:StructureMap.name [ fhir:value "category" ];
fhir:StructureMap.source [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "source" ];
fhir:StructureMap.element [ fhir:value "id" ];
fhir:StructureMap.variable [ fhir:value "a" ]
];
fhir:StructureMap.target [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "target" ];
fhir:StructureMap.contextType [ fhir:value "variable" ];
fhir:StructureMap.element [ fhir:value "category" ];
fhir:StructureMap.transform [ fhir:value "evaluate" ];
fhir:StructureMap.parameter [
fhir:index 0;
fhir:StructureMap.value [ fhir:value "'non-stock'" ]
]
]
], [
fhir:index 2;
fhir:StructureMap.name [ fhir:value "priority" ];
fhir:StructureMap.source [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "source" ];
fhir:StructureMap.element [ fhir:value "id" ];
fhir:StructureMap.variable [ fhir:value "a" ]
];
fhir:StructureMap.target [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "target" ];
fhir:StructureMap.contextType [ fhir:value "variable" ];
fhir:StructureMap.element [ fhir:value "priority" ];
fhir:StructureMap.transform [ fhir:value "evaluate" ];
fhir:StructureMap.parameter [
fhir:index 0;
fhir:StructureMap.value [ fhir:value "'routine'" ]
]
]
], [
fhir:index 3;
fhir:StructureMap.name [ fhir:value "quantity" ];
fhir:StructureMap.source [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "source" ];
fhir:StructureMap.element [ fhir:value "quantity" ];
fhir:StructureMap.variable [ fhir:value "a" ]
];
fhir:StructureMap.target [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "target" ];
fhir:StructureMap.contextType [ fhir:value "variable" ];
fhir:StructureMap.element [ fhir:value "category" ];
fhir:StructureMap.transform [ fhir:value "copy" ]
]
], [
fhir:index 4;
fhir:StructureMap.name [ fhir:value "item" ];
fhir:StructureMap.source [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "source" ];
fhir:StructureMap.element [ fhir:value "code" ];
fhir:StructureMap.variable [ fhir:value "a" ]
];
fhir:StructureMap.target [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "target" ];
fhir:StructureMap.contextType [ fhir:value "variable" ];
fhir:StructureMap.element [ fhir:value "orderedItem.itemCodeableConcept" ];
fhir:StructureMap.transform [ fhir:value "copy" ]
]
], [
fhir:index 5;
fhir:StructureMap.name [ fhir:value "when" ];
fhir:StructureMap.source [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "source" ];
fhir:StructureMap.element [ fhir:value "id" ];
fhir:StructureMap.variable [ fhir:value "a" ]
];
fhir:StructureMap.target [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "target" ];
fhir:StructureMap.contextType [ fhir:value "variable" ];
fhir:StructureMap.element [ fhir:value "occurrenceDateTime" ];
fhir:StructureMap.transform [ fhir:value "evaluate" ];
fhir:StructureMap.parameter [
fhir:index 0;
fhir:StructureMap.value [ fhir:value "now()" ]
]
]
], [
fhir:index 6;
fhir:StructureMap.name [ fhir:value "authoredOn" ];
fhir:StructureMap.source [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "source" ];
fhir:StructureMap.element [ fhir:value "id" ];
fhir:StructureMap.variable [ fhir:value "a" ]
];
fhir:StructureMap.target [
fhir:index 0;
fhir:StructureMap.context [ fhir:value "target" ];
fhir:StructureMap.contextType [ fhir:value "variable" ];
fhir:StructureMap.element [ fhir:value "authoredOn" ];
fhir:StructureMap.transform [ fhir:value "evaluate" ];
fhir:StructureMap.parameter [
fhir:index 0;
fhir:StructureMap.value [ fhir:value "now()" ]
]
]
]
] .
# -------------------------------------------------------------------------------------