dateTime.xml 1 <?xml version="1.0" encoding="utf-8"?> 2 <StructureDefinition xmlns="http://hl7.org/fhir"> 3 <id value="dateTime" /> 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/dateTime" /> 14 <version value="4.0.1" /> 15 <name value="dateTime" /> 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 dateTime Type: A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates." /> 26 <fhirVersion value="4.0.1" /> 27 <kind value="primitive-type" /> 28 <abstract value="false" /> 29 <type value="dateTime" /> 30 <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" /> 31 <derivation value="specialization" /> 32 <snapshot> 33 <element id="dateTime"> 34 <path value="dateTime" /> 35 <short value="Primitive Type dateTime" /> 36 <definition value="A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates." /> 37 <min value="0" /> 38 <max value="*" /> 39 <base> 40 <path value="dateTime" /> 41 <min value="0" /> 42 <max value="*" /> 43 </base> 44 <constraint> 45 <key value="ele-1" /> 46 <severity value="error" /> 47 <human value="All FHIR elements must have a @value or children" /> 48 <expression value="hasValue() or (children().count() > id.count())" /> 49 <xpath value="@value|f:*|h:div" /> 50 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 51 </constraint> 52 <isModifier value="false" /> 53 <isSummary value="false" /> 54 </element> 55 <element id="dateTime.id"> 56 <path value="dateTime.id" /> 57 <representation value="xmlAttr" /> 58 <short value="xml:id (or equivalent in JSON)" /> 59 <definition value="unique id for the element within a resource (for internal references)" /> 60 <min value="0" /> 61 <max value="1" /> 62 <base> 63 <path value="Element.id" /> 64 <min value="0" /> 65 <max value="1" /> 66 </base> 67 <type> 68 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 69 <valueUrl value="string" /> 70 </extension> 71 <code value="http://hl7.org/fhirpath/System.String" /> 72 </type> 73 <isModifier value="false" /> 74 <isSummary value="false" /> 75 </element> 76 <element id="dateTime.extension"> 77 <path value="dateTime.extension" /> 78 <short value="Additional content defined by implementations" /> 79 <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." /> 80 <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." /> 81 <alias value="extensions" /> 82 <alias value="user content" /> 83 <min value="0" /> 84 <max value="*" /> 85 <base> 86 <path value="Element.extension" /> 87 <min value="0" /> 88 <max value="*" /> 89 </base> 90 <type> 91 <code value="Extension" /> 92 </type> 93 <constraint> 94 <key value="ele-1" /> 95 <severity value="error" /> 96 <human value="All FHIR elements must have a @value or children" /> 97 <expression value="hasValue() or (children().count() > id.count())" /> 98 <xpath value="@value|f:*|h:div" /> 99 <source value="http://hl7.org/fhir/StructureDefinition/Element" /> 100 </constraint> 101 <constraint> 102 <key value="ext-1" /> 103 <severity value="error" /> 104 <human value="Must have either extensions or value[x], not both" /> 105 <expression value="extension.exists() != value.exists()" /> 106 <xpath value="exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])" /> 107 <source value="http://hl7.org/fhir/StructureDefinition/Extension" /> 108 </constraint> 109 <isModifier value="false" /> 110 <isSummary value="false" /> 111 </element> 112 <element id="dateTime.value"> 113 <path value="dateTime.value" /> 114 <representation value="xmlAttr" /> 115 <short value="Primitive value for dateTime" /> 116 <definition value="The actual value" /> 117 <min value="0" /> 118 <max value="1" /> 119 <base> 120 <path value="dateTime.value" /> 121 <min value="0" /> 122 <max value="1" /> 123 </base> 124 <type> 125 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 126 <valueUrl value="dateTime" /> 127 </extension> 128 <extension url="http://hl7.org/fhir/StructureDefinition/regex"> 129 <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])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?" /> 130 </extension> 131 <code value="http://hl7.org/fhirpath/System.DateTime" /> 132 </type> 133 <isModifier value="false" /> 134 <isSummary value="false" /> 135 </element> 136 </snapshot> 137 <differential> 138 <element id="dateTime"> 139 <path value="dateTime" /> 140 <short value="Primitive Type dateTime" /> 141 <definition value="A date, date-time or partial date (e.g. just year or year + month). If hours and minutes are specified, a time zone SHALL be populated. The format is a union of the schema types gYear, gYearMonth, date and dateTime. Seconds must be provided due to schema type constraints but may be zero-filled and may be ignored. Dates SHALL be valid dates." /> 142 <min value="0" /> 143 <max value="*" /> 144 </element> 145 <element id="dateTime.value"> 146 <path value="dateTime.value" /> 147 <representation value="xmlAttr" /> 148 <short value="Primitive value for dateTime" /> 149 <definition value="Primitive value for dateTime" /> 150 <min value="0" /> 151 <max value="1" /> 152 <type> 153 <extension url="http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type"> 154 <valueUrl value="dateTime" /> 155 </extension> 156 <extension url="http://hl7.org/fhir/StructureDefinition/regex"> 157 <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])(T([01][0-9]|2[0-3]):[0-5][0-9]:([0-5][0-9]|60)(\.[0-9]+)?(Z|(\+|-)((0[0-9]|1[0-3]):[0-5][0-9]|14:00)))?)?)?" /> 158 </extension> 159 <code value="http://hl7.org/fhirpath/System.DateTime" /> 160 </type> 161 </element> 162 </differential> 163 </StructureDefinition>