397 lines
12 KiB
XML
397 lines
12 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<StructureDefinition xmlns="http://hl7.org/fhir" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://hl7.org/fhir ../../input-cache/schemas/R4/fhir-single.xsd">
|
|
<id value="myObservation"/>
|
|
<url value="http://somewhere.org/fhir/uv/myig/StructureDefinition/myObservation"/>
|
|
<identifier>
|
|
<type>
|
|
<coding>
|
|
<system value="http://example.org/some-id-type-system"/>
|
|
<code value="foo"/>
|
|
</coding>
|
|
<text value="Some OID"/>
|
|
</type>
|
|
<value value="0.1.2.3.1"/>
|
|
</identifier>
|
|
<identifier>
|
|
<type>
|
|
<coding>
|
|
<system value="http://example.org/some-id-type-system"/>
|
|
<code value="foo"/>
|
|
</coding>
|
|
<coding>
|
|
<system value="http://terminology.hl7.org/CodeSystem/v2-0203"/>
|
|
<code value="AM"/>
|
|
<display value="American Express"/>
|
|
</coding>
|
|
</type>
|
|
<value value="0.1.2.3.2"/>
|
|
</identifier>
|
|
<identifier>
|
|
<type>
|
|
<coding>
|
|
<system value="http://example.org/some-id-type-system"/>
|
|
<code value="ACSN"/>
|
|
</coding>
|
|
</type>
|
|
<value value="0.1.2.3.3"/>
|
|
</identifier>
|
|
<identifier>
|
|
<type>
|
|
<coding>
|
|
<system value="http://example.org/some-id-type-system"/>
|
|
<code value="123"/>
|
|
</coding>
|
|
</type>
|
|
<value value="0.1.2.3.4"/>
|
|
</identifier>
|
|
<identifier>
|
|
<use value="official"/>
|
|
</identifier>
|
|
<identifier>
|
|
<value value="0.1.2.3.5"/>
|
|
</identifier>
|
|
<name value="MyObservation"/>
|
|
<title value="My Observation Profile"/>
|
|
<status value="draft"/>
|
|
<experimental value="true"/>
|
|
<publisher value="Publisher for this artifact"/>
|
|
<contact>
|
|
<telecom>
|
|
<!-- Contact for publisher of this artifact -->
|
|
<system value="url"/>
|
|
<value value="http://example.org/some-organization"/>
|
|
</telecom>
|
|
</contact>
|
|
<description value="A profile showing the use of XML to author profiles"/>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="gender"/>
|
|
<display value="Gender"/>
|
|
</code>
|
|
<valueCodeableConcept>
|
|
<coding>
|
|
<system value="http://hl7.org/fhir/administrative-gender"/>
|
|
<code value="female"/>
|
|
<display value="Female"/>
|
|
</coding>
|
|
</valueCodeableConcept>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="age"/>
|
|
<display value="Age Range"/>
|
|
</code>
|
|
<valueQuantity>
|
|
<value value="2"/>
|
|
<unit value="months"/>
|
|
<system value="http://unitsofmeasure.org"/>
|
|
<code value="mo"/>
|
|
</valueQuantity>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="age"/>
|
|
<display value="Age Range"/>
|
|
</code>
|
|
<valueQuantity>
|
|
<value value="3"/>
|
|
<system value="http://unitsofmeasure.org"/>
|
|
<code value="mo"/>
|
|
</valueQuantity>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="age"/>
|
|
<display value="Age Range"/>
|
|
</code>
|
|
<valueQuantity>
|
|
<value value="4"/>
|
|
</valueQuantity>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="age"/>
|
|
<display value="Age Range"/>
|
|
</code>
|
|
<valueRange>
|
|
<high>
|
|
<value value="1"/>
|
|
<unit value="months"/>
|
|
</high>
|
|
</valueRange>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="age"/>
|
|
<display value="Age Range"/>
|
|
</code>
|
|
<valueRange>
|
|
<low>
|
|
<value value="2"/>
|
|
<unit value="years"/>
|
|
</low>
|
|
<high>
|
|
<value value="5"/>
|
|
<unit value="years"/>
|
|
</high>
|
|
</valueRange>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="age"/>
|
|
<display value="Age Range"/>
|
|
</code>
|
|
<valueRange>
|
|
<low>
|
|
<value value="10"/>
|
|
<unit value="years"/>
|
|
</low>
|
|
</valueRange>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="venue"/>
|
|
<display value="Clinical Venue"/>
|
|
</code>
|
|
<valueReference>
|
|
<reference value="http://example.org/Location/123"/>
|
|
<display value="Some location"/>
|
|
</valueReference>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="venue"/>
|
|
<display value="Clinical Venue"/>
|
|
</code>
|
|
<valueReference>
|
|
<display value="Some other location"/>
|
|
</valueReference>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="venue"/>
|
|
<display value="Clinical Venue"/>
|
|
</code>
|
|
<valueReference>
|
|
<reference value="http://example.org/Location/456"/>
|
|
</valueReference>
|
|
</useContext>
|
|
<useContext>
|
|
<code>
|
|
<system value="http://terminology.hl7.org/CodeSystem/usage-context-type"/>
|
|
<code value="venue"/>
|
|
<display value="Clinical Venue"/>
|
|
</code>
|
|
<valueReference>
|
|
<identifier>
|
|
<value value="LOCATION-ABC"/>
|
|
</identifier>
|
|
</valueReference>
|
|
</useContext>
|
|
<jurisdiction>
|
|
<coding>
|
|
<!-- Use this if the IG is country-specific -->
|
|
<system value="urn:iso:std:iso:3166"/>
|
|
<code value="US"/>
|
|
</coding>
|
|
</jurisdiction>
|
|
<jurisdiction>
|
|
<coding>
|
|
<!-- Use this if the IG is state/province/territory-specific -->
|
|
<system value="urn:iso:std:iso:3166:-2"/>
|
|
<code value="CA-QC"/>
|
|
</coding>
|
|
</jurisdiction>
|
|
<jurisdiction>
|
|
<coding>
|
|
<!-- Testing a jurisdiction that doesn't have a resolvable flag -->
|
|
<system value="urn:iso:std:iso:3166:-2"/>
|
|
<code value="GR-E"/>
|
|
</coding>
|
|
</jurisdiction>
|
|
<jurisdiction>
|
|
<!-- Use this only if there's no standard code for the jurisdiction -->
|
|
<text value="The universe"/>
|
|
</jurisdiction>
|
|
<purpose value="Explain why this resource is necessary here"/>
|
|
<copyright value="Explain licensing or other legal limitations on use"/>
|
|
<keyword>
|
|
<system value="http://example.org/some-system"/>
|
|
<code value="01"/>
|
|
<display value="keyword 1"/>
|
|
</keyword>
|
|
<keyword>
|
|
<system value="http://example.org/some-system"/>
|
|
<code value="01"/>
|
|
<display value="keyword 2"/>
|
|
</keyword>
|
|
<fhirVersion value="4.0.0"/>
|
|
<kind value="resource"/>
|
|
<abstract value="false"/>
|
|
<type value="Observation"/>
|
|
<baseDefinition value="http://hl7.org/fhir/StructureDefinition/Observation"/>
|
|
<derivation value="constraint"/>
|
|
<differential>
|
|
<element id="Observation.basedOn">
|
|
<path value="Observation.basedOn"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.partOf">
|
|
<path value="Observation.partOf"/>
|
|
<type>
|
|
<code value="Reference"/>
|
|
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure">
|
|
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
|
|
<valueBoolean value="true"/>
|
|
</extension>
|
|
</targetProfile>
|
|
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Immunization"/>
|
|
</type>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.code">
|
|
<path value="Observation.code"/>
|
|
<patternCodeableConcept>
|
|
<coding>
|
|
<system value="http://loinc.org"/>
|
|
<code value="85354-9"/>
|
|
</coding>
|
|
</patternCodeableConcept>
|
|
<binding>
|
|
<strength value="required"/>
|
|
<valueSet value="http://somewhere.org/fhir/uv/myig/ValueSet/valueset-fake"/>
|
|
</binding>
|
|
</element>
|
|
<element id="Observation.subject">
|
|
<path value="Observation.subject"/>
|
|
<type>
|
|
<code value="Reference"/>
|
|
<targetProfile value="http://hl7.org/fhir/StructureDefinition/Patient">
|
|
<!-- this is an error - it is meaningless unless the element itself is must-support -->
|
|
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
|
|
<valueBoolean value="true"/>
|
|
</extension>
|
|
</targetProfile>
|
|
</type>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.focus">
|
|
<path value="Observation.focus"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.value[x]">
|
|
<path value="Observation.value[x]"/>
|
|
<type>
|
|
<extension url="http://hl7.org/fhir/StructureDefinition/elementdefinition-type-must-support">
|
|
<valueBoolean value="true"/>
|
|
</extension>
|
|
<code value="Quantity"/>
|
|
</type>
|
|
<type>
|
|
<code value="CodeableConcept"/>
|
|
</type>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.component">
|
|
<path value="Observation.component"/>
|
|
<slicing>
|
|
<discriminator>
|
|
<type value="pattern"/>
|
|
<path value="code"/>
|
|
</discriminator>
|
|
<ordered value="false"/>
|
|
<rules value="open"/>
|
|
</slicing>
|
|
<min value="2"/>
|
|
<max value="*"/>
|
|
</element>
|
|
<element id="Observation.component:Systolic">
|
|
<path value="Observation.component"/>
|
|
<sliceName value="Systolic"/>
|
|
<min value="1"/>
|
|
<max value="1"/>
|
|
</element>
|
|
<element id="Observation.component:Systolic.code">
|
|
<path value="Observation.component.code"/>
|
|
<short value="Systolic pressure"/>
|
|
<patternCodeableConcept>
|
|
<coding>
|
|
<system value="http://loinc.org"/>
|
|
<code value="8480-6"/>
|
|
</coding>
|
|
</patternCodeableConcept>
|
|
</element>
|
|
<element id="Observation.component:Systolic.value[x]">
|
|
<path value="Observation.component.valueQuantity"/>
|
|
<type>
|
|
<code value="Quantity"/>
|
|
</type>
|
|
</element>
|
|
<element id="Observation.component:Systolic.value[x]:valueQuantity.value">
|
|
<path value="Observation.component.valueQuantity.value"/>
|
|
<min value="1"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.component:Systolic.value[x]:valueQuantity.system">
|
|
<path value="Observation.component.valueQuantity.system"/>
|
|
<min value="1"/>
|
|
<fixedUri value="http://unitsofmeasure.org"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.component:Systolic.value[x]:valueQuantity.code">
|
|
<path value="Observation.component.valueQuantity.code"/>
|
|
<min value="1"/>
|
|
<fixedCode value="mm[Hg]"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.component:Diastolic">
|
|
<path value="Observation.component"/>
|
|
<sliceName value="Diastolic"/>
|
|
<min value="1"/>
|
|
<max value="1"/>
|
|
</element>
|
|
<element id="Observation.component:Diastolic.code">
|
|
<path value="Observation.component.code"/>
|
|
<patternCodeableConcept>
|
|
<coding>
|
|
<system value="http://loinc.org"/>
|
|
<code value="8462-4"/>
|
|
</coding>
|
|
</patternCodeableConcept>
|
|
</element>
|
|
<element id="Observation.component:Diastolic.value[x]:valueQuantity">
|
|
<path value="Observation.component.valueQuantity"/>
|
|
<type>
|
|
<code value="Quantity"/>
|
|
</type>
|
|
</element>
|
|
<element id="Observation.component:Diastolic.value[x]:valueQuantity.value">
|
|
<path value="Observation.component.valueQuantity.value"/>
|
|
<min value="1"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.component:Diastolic.value[x]:valueQuantity.system">
|
|
<path value="Observation.component.valueQuantity.system"/>
|
|
<min value="1"/>
|
|
<fixedUri value="http://unitsofmeasure.org"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
<element id="Observation.component:Diastolic.value[x]:valueQuantity.code">
|
|
<path value="Observation.component.valueQuantity.code"/>
|
|
<min value="1"/>
|
|
<fixedCode value="mm[Hg]"/>
|
|
<mustSupport value="true"/>
|
|
</element>
|
|
</differential>
|
|
</StructureDefinition>
|