date.xml
  1 <?xml version="1.0" encoding="utf-8"?>
  2 <StructureDefinition xmlns="http://hl7.org/fhir">
  3   <id value="date" />
  4   <meta>
  5     <lastUpdated value="2023-03-26T06:21:02.749+02: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   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
 14     <valueCode value="has-range" />
 15   </extension>
 16   <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-type-characteristics">
 17     <valueCode value="has-length" />
 18   </extension>
 19   <url value="http://hl7.org/fhir/StructureDefinition/date" />
 20   <version value="5.0.0" />
 21   <name value="date" />
 22   <status value="active" />
 23   <experimental value="false" />
 24   <date value="2023-03-26T06:21:02.0000000+02:00" />
 25   <publisher value="HL7 FHIR Standard" />
 26   <contact>
 27     <telecom>
 28       <system value="url" />
 29       <value value="http://hl7.org/fhir" />
 30     </telecom>
 31   </contact>
 32   <description value="date Type: A date or partial date (e.g. just year or year + month). There is no UTC offset. The format is a union of the schema types gYear, gYearMonth and date.  Dates SHALL be valid dates." />
 33   <jurisdiction>
 34     <coding>
 35       <system value="http://unstats.un.org/unsd/methods/m49/m49.htm" />
 36       <code value="001" />
 37       <display value="World" />
 38     </coding>
 39   </jurisdiction>
 40   <fhirVersion value="5.0.0" />
 41   <kind value="primitive-type" />
 42   <abstract value="false" />
 43   <type value="date" />
 44   <baseDefinition value="http://hl7.org/fhir/StructureDefinition/PrimitiveType" />
 45   <derivation value="specialization" />
 46   <snapshot>
 47     <element id="date">
 48       <path value="date" />
 49       <short value="Primitive Type date" />
 50       <definition value="A date or partial date (e.g. just year or year + month). There is no UTC offset. The format is a union of the schema types gYear, gYearMonth and date.  Dates SHALL be valid dates." />
 51       <min value="0" />
 52       <max value="*" />
 53       <base>
 54         <path value="date" />
 55         <min value="0" />
 56         <max value="*" />
 57       </base>
 58       <constraint>
 59         <key value="ele-1" />
 60         <severity value="error" />
 61         <human value="All FHIR elements must have a @value or children" />
 62         <expression value="hasValue() or (children().count() > id.count())" />
 63         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
 64       </constraint>
 65       <isModifier value="false" />
 66       <isSummary value="false" />
 67     </element>
 68     <element id="date.id">
 69       <path value="date.id" />
 70       <representation value="xmlAttr" />
 71       <short value="xml:id (or equivalent in JSON)" />
 72       <definition value="unique id for the element within a resource (for internal references)" />
 73       <min value="0" />
 74       <max value="1" />
 75       <base>
 76         <path value="Element.id" />
 77         <min value="0" />
 78         <max value="1" />
 79       </base>
 80       <type>
 81         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
 82           <valueUrl value="string" />
 83         </extension>
 84         <code value="http://hl7.org/fhirpath/System.String" />
 85       </type>
 86       <isModifier value="false" />
 87       <isSummary value="false" />
 88     </element>
 89     <element id="date.extension">
 90       <path value="date.extension" />
 91       <short value="Additional content defined by implementations" />
 92       <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 managable, 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." />
 93       <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." />
 94       <alias value="extensions" />
 95       <alias value="user content" />
 96       <min value="0" />
 97       <max value="*" />
 98       <base>
 99         <path value="Element.extension" />
100         <min value="0" />
101         <max value="*" />
102       </base>
103       <type>
104         <code value="Extension" />
105       </type>
106       <constraint>
107         <key value="ele-1" />
108         <severity value="error" />
109         <human value="All FHIR elements must have a @value or children" />
110         <expression value="hasValue() or (children().count() > id.count())" />
111         <source value="http://hl7.org/fhir/StructureDefinition/Element" />
112       </constraint>
113       <constraint>
114         <key value="ext-1" />
115         <severity value="error" />
116         <human value="Must have either extensions or value[x], not both" />
117         <expression value="extension.exists() != value.exists()" />
118         <source value="http://hl7.org/fhir/StructureDefinition/Extension" />
119       </constraint>
120       <isModifier value="false" />
121       <isSummary value="false" />
122     </element>
123     <element id="date.value">
124       <path value="date.value" />
125       <representation value="xmlAttr" />
126       <short value="Primitive value for date" />
127       <definition value="The actual value" />
128       <min value="0" />
129       <max value="1" />
130       <base>
131         <path value="date.value" />
132         <min value="0" />
133         <max value="1" />
134       </base>
135       <type>
136         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
137           <valueUrl value="date" />
138         </extension>
139         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
140           <valueString value="([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?" />
141         </extension>
142         <code value="http://hl7.org/fhirpath/System.Date" />
143       </type>
144       <isModifier value="false" />
145       <isSummary value="false" />
146     </element>
147   </snapshot>
148   <differential>
149     <element id="date">
150       <path value="date" />
151       <short value="Primitive Type date" />
152       <definition value="A date or partial date (e.g. just year or year + month). There is no UTC offset. The format is a union of the schema types gYear, gYearMonth and date.  Dates SHALL be valid dates." />
153       <min value="0" />
154       <max value="*" />
155     </element>
156     <element id="date.value">
157       <path value="date.value" />
158       <representation value="xmlAttr" />
159       <short value="Primitive value for date" />
160       <definition value="Primitive value for date" />
161       <min value="0" />
162       <max value="1" />
163       <type>
164         <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type">
165           <valueUrl value="date" />
166         </extension>
167         <extension url="http://hl7.org/fhir/StructureDefinition/regex">
168           <valueString value="([0-9]([0-9]([0-9][1-9]|[1-9]0)|[1-9]00)|[1-9]000)(-(0[1-9]|1[0-2])(-(0[1-9]|[1-2][0-9]|3[0-1]))?)?" />
169         </extension>
170         <code value="http://hl7.org/fhirpath/System.Date" />
171       </type>
172     </element>
173   </differential>
174 </StructureDefinition>