Example StructureMap/example (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:StructureMap;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "example"];
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: StructureMap</b><a name=\"example\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource StructureMap "example" </p></div><p><b>url</b>: <code>http://hl7.org/fhir/StructureMap/example</code></p><p><b>identifier</b>: id: urn:oid:2.16.840.1.113883.4.642.13.2</p><p><b>version</b>: 0.1</p><p><b>name</b>: ExampleMap</p><p><b>title</b>: Example Map</p><p><b>status</b>: draft</p><p><b>date</b>: 2017-03-09</p><p><b>publisher</b>: HL7 FHIR Standard</p><p><b>contact</b>: <a href=\"http://hl7.org/fhir\">http://hl7.org/fhir</a></p><p><b>description</b>: Example Structure Map</p><p><b>jurisdiction</b>: Oceania <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (m49.htm#009)</span></p><blockquote><p><b>group</b></p><p><b>name</b>: Examples</p><p><b>documentation</b>: test -> testValue</p><h3>Inputs</h3><table class=\"grid\"><tr><td>-</td><td><b>Name</b></td><td><b>Mode</b></td></tr><tr><td>*</td><td>test</td><td>source</td></tr></table><blockquote><p><b>rule</b></p><p><b>name</b>: rule1</p><h3>Sources</h3><table class=\"grid\"><tr><td>-</td><td><b>Context</b></td><td><b>Type</b></td><td><b>Element</b></td><td><b>Variable</b></td></tr><tr><td>*</td><td>Source</td><td>SourceClassA</td><td>test</td><td>t</td></tr></table><h3>Targets</h3><table class=\"grid\"><tr><td>-</td><td><b>Context</b></td><td><b>Element</b></td><td><b>Transform</b></td></tr><tr><td>*</td><td>Destination</td><td>testValue</td><td>copy</td></tr></table></blockquote></blockquote></div>"
];
fhir:StructureMap.url [ fhir:value "http://hl7.org/fhir/StructureMap/example"];
fhir:StructureMap.identifier [
fhir:index 0;
fhir:Identifier.system [ fhir:value "urn:ietf:rfc:3986" ];
fhir:Identifier.value [ fhir:value "urn:oid:2.16.840.1.113883.4.642.13.2" ]
];
fhir:StructureMap.version [ fhir:value "0.1"];
fhir:StructureMap.name [ fhir:value "ExampleMap"];
fhir:StructureMap.title [ fhir:value "Example Map"];
fhir:StructureMap.status [ fhir:value "draft"];
fhir:StructureMap.date [ fhir:value "2017-03-09"^^xsd:date];
fhir:StructureMap.publisher [ fhir:value "HL7 FHIR Standard"];
fhir:StructureMap.contact [
fhir:index 0;
fhir:ContactDetail.telecom [
fhir:index 0;
fhir:ContactPoint.system [ fhir:value "url" ];
fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ]
]
];
fhir:StructureMap.description [ fhir:value "Example Structure Map"];
fhir:StructureMap.jurisdiction [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://unstats.un.org/unsd/methods/m49/m49.htm" ];
fhir:Coding.code [ fhir:value "009" ];
fhir:Coding.display [ fhir:value "Oceania" ]
]
];
fhir:StructureMap.group [
fhir:index 0;
fhir:StructureMap.group.name [ fhir:value "Examples" ];
fhir:StructureMap.group.documentation [ fhir:value "test -> testValue" ];
fhir:StructureMap.group.input [
fhir:index 0;
fhir:StructureMap.group.input.name [ fhir:value "test" ];
fhir:StructureMap.group.input.mode [ fhir:value "source" ]
];
fhir:StructureMap.group.rule [
fhir:index 0;
fhir:StructureMap.group.rule.name [ fhir:value "rule1" ];
fhir:StructureMap.group.rule.source [
fhir:index 0;
fhir:StructureMap.group.rule.source.context [ fhir:value "Source" ];
fhir:StructureMap.group.rule.source.type [ fhir:value "SourceClassA" ];
fhir:StructureMap.group.rule.source.element [ fhir:value "test" ];
fhir:StructureMap.group.rule.source.variable [ fhir:value "t" ]
];
fhir:StructureMap.group.rule.target [
fhir:index 0;
fhir:StructureMap.group.rule.target.context [ fhir:value "Destination" ];
fhir:StructureMap.group.rule.target.element [ fhir:value "testValue" ];
fhir:StructureMap.group.rule.target.transform [ fhir:value "copy" ]
]
]
]] .
# - ontology header ------------------------------------------------------------
[a owl:Ontology;
owl:imports fhir:fhir.ttl] .
# -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the
examples are correct and useful, but they are not a normative part
of the specification.