Example
Medication/med0306
(XML)
R3
:
R4
Conversion
maps
for
Bundle.
Functional
status
for
this
map:
28
tests
of
which
3
fail
to
execute
.
3
fail
round-trip
testing
and
16
r3
resources
are
invalid
(0
errors).
(
see
documentation)
-
2.36.10.1
Narrative
R3
to
R4
-
XML
map "http://hl7.org/fhir/StructureMap/Bundle3to4" = "R3 to R4 Conversions for Bundle"
uses "http://hl7.org/fhir/3.0/StructureDefinition/Bundle" alias BundleR3 as source
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as target
imports "http://hl7.org/fhir/StructureMap/*3to4"
group Bundle(source src : BundleR3, target tgt : Bundle) extends Resource <<type+>> {
src.identifier -> tgt.identifier;
src.type -> tgt.type;
src.total -> tgt.total;
src.link as vs0 -> tgt.link as vt0 then link(vs0, vt0);
src.entry as vs0 -> tgt.entry as vt0 then entry(vs0, vt0);
src.signature -> tgt.signature;
}
group link(source src, target tgt) extends BackboneElement {
src.relation -> tgt.relation;
src.url -> tgt.url;
}
group entry(source src, target tgt) extends BackboneElement {
src.fullUrl -> tgt.fullUrl;
src.resource -> tgt.resource;
src.search as vs0 -> tgt.search as vt0 then search(vs0, vt0);
src.request as vs0 -> tgt.request as vt0 then request(vs0, vt0);
src.response as vs0 -> tgt.response as vt0 then response(vs0, vt0);
}
group search(source src, target tgt) extends BackboneElement {
src.mode -> tgt.mode;
src.score -> tgt.score;
}
group request(source src, target tgt) extends BackboneElement {
src.method -> tgt.method;
src.url -> tgt.url;
src.ifNoneMatch -> tgt.ifNoneMatch;
src.ifModifiedSince -> tgt.ifModifiedSince;
src.ifMatch -> tgt.ifMatch;
src.ifNoneExist -> tgt.ifNoneExist;
}
group response(source src, target tgt) extends BackboneElement {
src.status -> tgt.status;
src.location -> tgt.location;
src.etag -> tgt.etag;
src.lastModified -> tgt.lastModified;
src.outcome -> tgt.outcome;
}
2.36.10.2
-
JSON
R4
to
R3
-
TTL
Raw
XML
(
canonical
form
+
also
see
XML
Format
Specification
)
Jump
past
Narrative
map "http://hl7.org/fhir/StructureMap/Bundle4to3" = "R4 to R3 Conversion for Bundle"
uses "http://hl7.org/fhir/StructureDefinition/Bundle" alias Bundle as source
uses "http://hl7.org/fhir/3.0/StructureDefinition/Bundle" alias BundleR3 as target
imports "http://hl7.org/fhir/StructureMap/*4to3"
group Bundle(source src : Bundle, target tgt : BundleR3) extends Resource <<type+>> {
src.identifier -> tgt.identifier;
src.type -> tgt.type;
src.total -> tgt.total;
src.link as vs0 -> tgt.link as vt0 then link(vs0, vt0);
src.entry as vs0 -> tgt.entry as vt0 then entry(vs0, vt0);
src.signature -> tgt.signature;
}
group link(source src, target tgt) extends BackboneElement {
src.relation -> tgt.relation;
src.url -> tgt.url;
}
group entry(source src, target tgt) extends BackboneElement {
src.fullUrl -> tgt.fullUrl;
src.resource -> tgt.resource;
src.search as vs0 -> tgt.search as vt0 then search(vs0, vt0);
src.request as vs0 -> tgt.request as vt0 then request(vs0, vt0);
src.response as vs0 -> tgt.response as vt0 then response(vs0, vt0);
}
group search(source src, target tgt) extends BackboneElement {
src.mode -> tgt.mode;
src.score -> tgt.score;
}
group request(source src, target tgt) extends BackboneElement {
src.method -> tgt.method;
src.url -> tgt.url;
src.ifNoneMatch -> tgt.ifNoneMatch;
src.ifModifiedSince -> tgt.ifModifiedSince;
src.ifMatch -> tgt.ifMatch;
src.ifNoneExist -> tgt.ifNoneExist;
}
group response(source src, target tgt) extends BackboneElement {
src.status -> tgt.status;
src.location -> tgt.location;
src.etag -> tgt.etag;
src.lastModified -> tgt.lastModified;
src.outcome -> tgt.outcome;
}
IV
Chemotherapy
Example
-
Manufactured
Product
-
Adcetris
(id
=
"med0306")
<?xml version="1.0" encoding="UTF-8"?>
<Medication xmlns="http://hl7.org/fhir">
<id value="med0306"/>
<text> <status value="generated"/> <div xmlns="http://www.w3.org/1999/xhtml"><p> <b> Generated Narrative: Medication</b> <a name="med0306"> </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 Medication "med0306" </p> </div> <p> <b> code</b> : Adcetris <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="http://terminology.hl7.org/4.0.0/CodeSystem-v3-ndc.html">National drug codes</a> #51144-050-01)</span> </p> <p> <b> marketingAuthorizationHolder</b> : <a name="mmanu"> </a> </p> <blockquote> <p/> <p> <a name="mmanu"> </a> </p> <p> <b> name</b> : Medication Manufacturer</p> </blockquote> <p> <b> doseForm</b> : Lyophilized powder for injectable solution (qualifier value) <span style="background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki"> (<a href="https://browser.ihtsdotools.org/">SNOMED CT</a> #421637006)</span> </p> <h3> Batches</h3> <table class="grid"><tr> <td> -</td> <td> <b> LotNumber</b> </td> <td> <b> ExpirationDate</b> </td> </tr> <tr> <td> *</td> <td> 12345</td> <td> 2019-10-31</td> </tr> </table> </div> </text> <contained>
<Organization>
<id value="mmanu"/>
<name value="Medication Manufacturer"/>
</Organization>
</contained>
<code>
<coding>
<system value="http://hl7.org/fhir/sid/ndc"/>
<code value="51144-050-01"/>
<display value="Adcetris"/>
</coding>
</code>
<marketingAuthorizationHolder>
<reference value="#mmanu"/>
</marketingAuthorizationHolder>
<doseForm>
<coding>
<system value="http://snomed.info/sct"/>
<code value="421637006"/>
<display value="Lyophilized powder for injectable solution (qualifier value) "/>
</coding>
</doseForm>
<batch>
<lotNumber value="12345"/>
<expirationDate value="2019-10-31"/>
</batch>
2.36.10.3
</
Medication
>
R4
Validation
Errors
<p>No
validation
errors
-
all
conversions
Usage
note:
every
effort
has
been
made
to
ensure
that
the
examples
are
clean</p>
correct
and
useful,
but
they
are
not
a
normative
part
of
the
specification.