{ "description": "Base StructureDefinition for date Type: A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates.", "_filename": "StructureDefinition-date.json", "package_name": "hl7.fhir.core", "date": "2017-12-20T15:52:34+11:00", "derivation": "specialization", "publisher": "HL7 FHIR Standard", "fhirVersion": "3.2.0", "name": "date", "abstract": false, "type": "date", "experimental": null, "resourceType": "StructureDefinition", "title": null, "package_version": "3.2.0", "snapshot": { "element": [ { "id": "date", "max": "*", "min": 0, "path": "date", "short": "Primitive Type date", "constraint": [ { "key": "ele-1", "human": "All FHIR elements must have a @value or children", "xpath": "@value|f:*|h:div", "source": "Element", "severity": "error", "expression": "hasValue() | (children().count() > id.count())" } ], "definition": "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates." }, { "path": "date.id", "min": 0, "definition": "unique id for the element within a resource (for internal references)", "short": "xml:id (or equivalent in JSON)", "type": [ { "code": "string" } ], "representation": [ "xmlAttr" ], "max": "1", "id": "date.id", "base": { "max": "1", "min": 0, "path": "Element.id" } }, { "path": "date.extension", "min": 0, "definition": "May be used to represent additional information that is not part of the basic definition of the resource. In order 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 is allowed to define an extension, there is a set of requirements that SHALL be met as part of the definition of the extension.", "short": "Additional Content defined by implementations", "type": [ { "code": "Extension" } ], "alias": [ "extensions", "user content" ], "max": "*", "id": "date.extension", "comment": "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.", "base": { "max": "*", "min": 0, "path": "Element.extension" } }, { "id": "date.value", "max": "1", "min": 0, "path": "date.value", "type": [ { "_code": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", "valueString": "string" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", "valueString": "xsd:gYear OR xsd:gYearMonth OR xsd:date" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", "valueString": "xsd:gYear OR xsd:gYearMonth OR xsd:date" } ] }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "([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]))?)?" } ] } ], "short": "Primitive value for date", "definition": "The actual value", "representation": [ "xmlAttr" ] } ] }, "status": "draft", "id": "49e815c9-0234-4b39-9fe8-36ee3683d95a", "kind": "primitive-type", "url": "http://hl7.org/fhir/StructureDefinition/date", "version": null, "differential": { "element": [ { "id": "date", "max": "*", "min": 0, "path": "date", "short": "Primitive Type date", "definition": "A date or partial date (e.g. just year or year + month). There is no time zone. The format is a union of the schema types gYear, gYearMonth and date. Dates SHALL be valid dates." }, { "id": "date.value", "max": "1", "min": 0, "path": "date.value", "type": [ { "_code": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-json-type", "valueString": "string" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-xml-type", "valueString": "xsd:gYear OR xsd:gYearMonth OR xsd:date" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-rdf-type", "valueString": "xsd:gYear OR xsd:gYearMonth OR xsd:date" } ] }, "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/regex", "valueString": "([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]))?)?" } ] } ], "short": "Primitive value for date", "definition": "Primitive value for date", "representation": [ "xmlAttr" ] } ] }, "contact": [ { "telecom": [ { "value": "http://hl7.org/fhir", "system": "url" } ] } ], "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element" }