canonical.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="canonical" />
  4   <meta>
  5     <lastUpdated value="2019-10-31T23:29:23.356+01:00" />
  6   </meta>
  7   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status">
  8     <valueCode value="normative" />
  9   </extension>
 10   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version">
 11     <valueCode value="4.0.0" />
 12   </extension>
 13   <url value="http://hl7.org/fhir/StructureDefinition/canonical" />
 14   <version value="4.0.1" />
 15   <name value="canonical" />
 16   <status value="active" />
 17   <date value="2019-10-31T23:29:23.0000000+01:00" />
 18   <publisher value="HL7 FHIR Standard" />
 19   <contact>
 20     <telecom>
 21       <system value="url" />
 22       <value value="http://hl7.org/fhir" />
 23     </telecom>
 24   </contact>
 25   <description value="Base StructureDefinition for canonical type: A URI that is a reference to a canonical URL on a FHIR resource" />
 26   <fhirVersion value="4.0.1" />
 27   <kind value="primitive-type" />
 28   <abstract value="false" />
 29   <type value="canonical" />
 30   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/uri" />
 31   <derivation value="specialization" />
 32   <snapshot>
 33     <element id="canonical">
 34       <path value="canonical" />
 35       <short value="Primitive Type canonical" />
 36       <definition value="A URI that is a reference to a canonical URL on a FHIR resource" />
 37       <comment value="see [Canonical References](references.html#canonical)" />
 38       <min value="0" />
 39       <max value="*" />
 40       <base>
 41         <path value="canonical" />
 42         <min value="0" />
 43         <max value="*" />
 44       </base>
 45       <constraint>
 46         <key value="ele-1" />
 47         <severity value="error" />
 48         <human value="All FHIR elements must have a @value or children" />
 49         <expression value="hasValue() or (children().count() > id.count())" />
 50         <xpath value="@value|f:*|h:div" />
 51         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 52       </constraint>
 53       <isModifier value="false" />
 54       <isSummary value="false" />
 55     </element>
 56     <element id="canonical.id">
 57       <path value="canonical.id" />
 58       <representation value="xmlAttr" />
 59       <short value="xml:id (or equivalent in JSON)" />
 60       <definition value="unique id for the element within a resource (for internal references)" />
 61       <min value="0" />
 62       <max value="1" />
 63       <base>
 64         <path value="Element.id" />
 65         <min value="0" />
 66         <max value="1" />
 67       </base>
 68       <type>
 69         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 70           <valueUrl value="string" />
 71         </extension>
 72         <code value="http://hl7.org/fhirpath/System.String" />
 73       </type>
 74       <isModifier value="false" />
 75       <isSummary value="false" />
 76     </element>
 77     <element id="canonical.extension">
 78       <path value="canonical.extension" />
 79       <short value="Additional content defined by implementations" />
 80       <definition value="May be used to represent additional information that is not part of the basic definition of the resource. To make the use of extensions safe and manageable, there is a strict set of governance  applied to the definition and use of extensions. Though any implementer can define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension." />
 81       <comment value="There can be no stigma associated with the use of extensions by any application, project, or standard - regardless of the institution or jurisdiction that uses or defines the extensions.  The use of extensions is what allows the FHIR specification to retain a core level of simplicity for everyone." />
 82       <alias value="extensions" />
 83       <alias value="user content" />
 84       <min value="0" />
 85       <max value="*" />
 86       <base>
 87         <path value="Element.extension" />
 88         <min value="0" />
 89         <max value="*" />
 90       </base>
 91       <type>
 92         <code value="Extension" />
 93       </type>
 94       <constraint>
 95         <key value="ele-1" />
 96         <severity value="error" />
 97         <human value="All FHIR elements must have a @value or children" />
 98         <expression value="hasValue() or (children().count() > id.count())" />
 99         <xpath value="@value|f:*|h:div" />
100         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
101       </constraint>
102       <constraint>
103         <key value="ext-1" />
104         <severity value="error" />
105         <human value="Must have either extensions or value[x], not both" />
106         <expression value="extension.exists() != value.exists()" />
107         <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" />
108         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
109       </constraint>
110       <isModifier value="false" />
111       <isSummary value="false" />
112     </element>
113     <element id="canonical.value">
114       <path value="canonical.value" />
115       <representation value="xmlAttr" />
116       <short value="Primitive value for canonical" />
117       <definition value="Primitive value for canonical" />
118       <min value="0" />
119       <max value="1" />
120       <base>
121         <path value="uri.value" />
122         <min value="0" />
123         <max value="1" />
124       </base>
125       <type>
126         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
127           <valueUrl value="string" />
128         </extension>
129         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
130           <valueString value="\S*" />
131         </extension>
132         <code value="http://hl7.org/fhirpath/System.String" />
133       </type>
134       <isModifier value="false" />
135       <isSummary value="false" />
136     </element>
137   </snapshot>
138   <differential>
139     <element id="canonical">
140       <path value="canonical" />
141       <short value="Primitive Type canonical" />
142       <definition value="A URI that is a reference to a canonical URL on a FHIR resource" />
143       <comment value="see [Canonical References](references.html#canonical)" />
144       <min value="0" />
145       <max value="*" />
146     </element>
147     <element id="canonical.value">
148       <path value="canonical.value" />
149       <representation value="xmlAttr" />
150       <short value="Primitive value for canonical" />
151       <definition value="Primitive value for canonical" />
152       <min value="0" />
153       <max value="1" />
154       <type>
155         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
156           <valueUrl value="canonical" />
157         </extension>
158         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
159           <valueString value="\S*" />
160         </extension>
161         <code value="http://hl7.org/fhirpath/System.String" />
162       </type>
163     </element>
164   </differential>
165 </StructureDefinition>