This page is part of the FHIR Specification (v5.0.0-ballot: R5 Ballot - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions . Page versions: R5 R4B R4
Modeling and Methodology Work Group | Maturity Level: N/A | Standards Status: Informative |
Raw Turtle (+ also see Turtle/RDF Format Specification)
StructureDefinition for Period
@prefix fhir: <http://hl7.org/fhir/> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . # - resource ------------------------------------------------------------------- [] a fhir:StructureDefinition; fhir:Resource.id [ fhir:value "Period"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ] ]; fhir:DomainResource.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "normative" ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ]; fhir:Extension.value [ fhir:value "4.0.0" ] ]; fhir:CanonicalResource.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/Period"]; fhir:CanonicalResource.version [ fhir:value "5.0.0-ballot"]; fhir:CanonicalResource.name [ fhir:value "Period"]; fhir:CanonicalResource.status [ fhir:value "active"]; fhir:CanonicalResource.experimental [ fhir:value "false"]; fhir:CanonicalResource.date [ fhir:value "2022-09-10T04:52:37+10:00"]; fhir:CanonicalResource.publisher [ fhir:value "HL7 FHIR Standard"]; fhir:CanonicalResource.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ] ]; fhir:CanonicalResource.description [ fhir:value "Period Type: A time period defined by a start and end date and optionally time."]; fhir:StructureDefinition.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/Period"]; fhir:StructureDefinition.version [ fhir:value "5.0.0-ballot"]; fhir:StructureDefinition.name [ fhir:value "Period"]; fhir:StructureDefinition.status [ fhir:value "active"]; fhir:StructureDefinition.experimental [ fhir:value "false"]; fhir:StructureDefinition.date [ fhir:value "2022-09-10T04:52:37+10:00"]; fhir:StructureDefinition.publisher [ fhir:value "HL7 FHIR Standard"]; fhir:StructureDefinition.contact [ fhir:ContactDetail.telecom [ fhir:ContactPoint.system [ fhir:value "url" ]; fhir:ContactPoint.value [ fhir:value "http://hl7.org/fhir" ] ] ]; fhir:StructureDefinition.description [ fhir:value "Period Type: A time period defined by a start and end date and optionally time."]; fhir:StructureDefinition.fhirVersion [ fhir:value "5.0.0-ballot"]; fhir:StructureDefinition.mapping [ fhir:StructureDefinitionMappingComponent.identity [ fhir:value "v2" ]; fhir:StructureDefinitionMappingComponent.uri [ fhir:value "http://hl7.org/v2" ]; fhir:StructureDefinitionMappingComponent.name [ fhir:value "HL7 v2 Mapping" ] ], [ fhir:StructureDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:StructureDefinitionMappingComponent.uri [ fhir:value "http://hl7.org/v3" ]; fhir:StructureDefinitionMappingComponent.name [ fhir:value "RIM Mapping" ] ]; fhir:StructureDefinition.kind [ fhir:value "complex-type"]; fhir:StructureDefinition.abstract [ fhir:value "false"]; fhir:StructureDefinition.type [ fhir:value "Period"]; fhir:StructureDefinition.baseDefinition [ fhir:value "http://hl7.org/fhir/StructureDefinition/DataType"]; fhir:StructureDefinition.derivation [ fhir:value "specialization"]; fhir:StructureDefinition.snapshot [ fhir:StructureDefinitionSnapshotComponent.element [ fhir:Element.id [ fhir:value "Period" ]; fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "normative" ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ]; fhir:Extension.value [ fhir:value "4.0.0" ] ]; fhir:ElementDefinition.path [ fhir:value "Period" ]; fhir:ElementDefinition.short [ fhir:value "Time range defined by start and end date/time" ]; fhir:ElementDefinition.definition [ fhir:value "A time period defined by a start and end date and optionally time." ]; fhir:ElementDefinition.comment [ fhir:value "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration)." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "Period" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.xpath [ fhir:value "@value|f:*|h:div" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "per-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "If present, start SHALL have a lower or equal value than end" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "start.hasValue().not() or end.hasValue().not() or (start <= end)" ]; fhir:ElementDefinitionConstraintComponent.xpath [ fhir:value "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Period" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ] ], [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "DR" ] ], [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "IVL<TS>[lowClosed=\"true\" and highClosed=\"true\"] or URG<TS>[lowClosed=\"true\" and highClosed=\"true\"]" ] ] ], [ fhir:Element.id [ fhir:value "Period.id" ]; fhir:ElementDefinition.path [ fhir:value "Period.id" ]; fhir:ElementDefinition.representation [ fhir:value "xmlAttr" ]; fhir:ElementDefinition.short [ fhir:value "Unique id for inter-element referencing" ]; fhir:ElementDefinition.definition [ fhir:value "Unique id for the element within a resource (for internal references). This may be any string value that does not contain spaces." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.id" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-fhir-type" ]; fhir:Extension.value [ fhir:value "id" ] ]; fhir:TypeRefComponent.code [ fhir:value "http://hl7.org/fhirpath/System.String" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "false" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ] ] ], [ fhir:Element.id [ fhir:value "Period.extension" ]; fhir:ElementDefinition.path [ fhir:value "Period.extension" ]; fhir:ElementDefinition.slicing [ fhir:ElementDefinitionSlicingComponent.discriminator [ fhir:ElementDefinitionSlicingDiscriminatorComponent.type [ fhir:value "value" ]; fhir:ElementDefinitionSlicingDiscriminatorComponent.path [ fhir:value "url" ] ]; fhir:ElementDefinitionSlicingComponent.description [ fhir:value "Extensions are always sliced by (at least) url" ]; fhir:ElementDefinitionSlicingComponent.rules [ fhir:value "open" ] ]; fhir:ElementDefinition.short [ fhir:value "Additional content defined by implementations" ]; fhir:ElementDefinition.definition [ fhir:value "May be used to represent additional information that is not part of the basic definition of the element. 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." ]; fhir:ElementDefinition.comment [ fhir: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." ]; fhir:ElementDefinition.alias [ fhir:value "extensions" ], [ fhir:value "user content" ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "Element.extension" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "*" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "Extension" ] ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.xpath [ fhir:value "@value|f:*|h:div" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ], [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ext-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "Must have either extensions or value[x], not both" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "extension.exists() != value.exists()" ]; fhir:ElementDefinitionConstraintComponent.xpath [ fhir:value "exists(f:extension)!=exists(f:*[starts-with(local-name(.), \"value\")])" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Extension" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "false" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "n/a" ] ] ], [ fhir:Element.id [ fhir:value "Period.start" ]; fhir:ElementDefinition.path [ fhir:value "Period.start" ]; fhir:ElementDefinition.short [ fhir:value "Starting time with inclusive boundary" ]; fhir:ElementDefinition.definition [ fhir:value "The start of the period. The boundary is inclusive." ]; fhir:ElementDefinition.comment [ fhir:value "If the low element is missing, the meaning is that the low boundary is not known." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "Period.start" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "dateTime" ] ]; fhir:ElementDefinition.condition [ fhir:value "per-1" ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.xpath [ fhir:value "@value|f:*|h:div" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "DR.1" ] ], [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "./low" ] ] ], [ fhir:Element.id [ fhir:value "Period.end" ]; fhir:ElementDefinition.path [ fhir:value "Period.end" ]; fhir:ElementDefinition.short [ fhir:value "End time with inclusive boundary, if not ongoing" ]; fhir:ElementDefinition.definition [ fhir:value "The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." ]; fhir:ElementDefinition.comment [ fhir:value "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.base [ fhir:ElementDefinitionBaseComponent.path [ fhir:value "Period.end" ]; fhir:ElementDefinitionBaseComponent.min [ fhir:value "0" ]; fhir:ElementDefinitionBaseComponent.max [ fhir:value "1" ] ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "dateTime" ] ]; fhir:ElementDefinition.meaningWhenMissing [ fhir:value "If the end of the period is missing, it means that the period is ongoing" ]; fhir:ElementDefinition.condition [ fhir:value "per-1" ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "ele-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "All FHIR elements must have a @value or children" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "hasValue() or (children().count() > id.count())" ]; fhir:ElementDefinitionConstraintComponent.xpath [ fhir:value "@value|f:*|h:div" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Element" ] ]; fhir:ElementDefinition.isModifier [ fhir:value "false" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "DR.2" ] ], [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "./high" ] ] ] ]; fhir:StructureDefinition.differential [ fhir:StructureDefinitionDifferentialComponent.element [ fhir:Element.id [ fhir:value "Period" ]; fhir:Element.extension [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status" ]; fhir:Extension.value [ fhir:value "normative" ] ], [ fhir:Extension.url [ fhir:value "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version" ]; fhir:Extension.value [ fhir:value "4.0.0" ] ]; fhir:ElementDefinition.path [ fhir:value "Period" ]; fhir:ElementDefinition.short [ fhir:value "Time range defined by start and end date/time" ]; fhir:ElementDefinition.definition [ fhir:value "A time period defined by a start and end date and optionally time." ]; fhir:ElementDefinition.comment [ fhir:value "A Period specifies a range of time; the context of use will specify whether the entire range applies (e.g. \"the patient was an inpatient of the hospital for this time range\") or one value from the range applies (e.g. \"give to the patient between these two times\").\n\nPeriod is not used for a duration (a measure of elapsed time). See [Duration](datatypes.html#Duration)." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "*" ]; fhir:ElementDefinition.constraint [ fhir:ElementDefinitionConstraintComponent.key [ fhir:value "per-1" ]; fhir:ElementDefinitionConstraintComponent.severity [ fhir:value "error" ]; fhir:ElementDefinitionConstraintComponent.human [ fhir:value "If present, start SHALL have a lower or equal value than end" ]; fhir:ElementDefinitionConstraintComponent.expression [ fhir:value "start.hasValue().not() or end.hasValue().not() or (start <= end)" ]; fhir:ElementDefinitionConstraintComponent.xpath [ fhir:value "not(exists(f:start/@value)) or not(exists(f:end/@value)) or (xs:dateTime(f:start/@value) <= xs:dateTime(f:end/@value))" ]; fhir:ElementDefinitionConstraintComponent.source [ fhir:value "http://hl7.org/fhir/StructureDefinition/Period" ] ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "DR" ] ], [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "IVL<TS>[lowClosed=\"true\" and highClosed=\"true\"] or URG<TS>[lowClosed=\"true\" and highClosed=\"true\"]" ] ] ], [ fhir:Element.id [ fhir:value "Period.start" ]; fhir:ElementDefinition.path [ fhir:value "Period.start" ]; fhir:ElementDefinition.short [ fhir:value "Starting time with inclusive boundary" ]; fhir:ElementDefinition.definition [ fhir:value "The start of the period. The boundary is inclusive." ]; fhir:ElementDefinition.comment [ fhir:value "If the low element is missing, the meaning is that the low boundary is not known." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "dateTime" ] ]; fhir:ElementDefinition.condition [ fhir:value "per-1" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "DR.1" ] ], [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "./low" ] ] ], [ fhir:Element.id [ fhir:value "Period.end" ]; fhir:ElementDefinition.path [ fhir:value "Period.end" ]; fhir:ElementDefinition.short [ fhir:value "End time with inclusive boundary, if not ongoing" ]; fhir:ElementDefinition.definition [ fhir:value "The end of the period. If the end of the period is missing, it means no end was known or planned at the time the instance was created. The start may be in the past, and the end date in the future, which means that period is expected/planned to end at that time." ]; fhir:ElementDefinition.comment [ fhir:value "The high value includes any matching date/time. i.e. 2012-02-03T10:00:00 is in a period that has an end value of 2012-02-03." ]; fhir:ElementDefinition.min [ fhir:value "0" ]; fhir:ElementDefinition.max [ fhir:value "1" ]; fhir:ElementDefinition.type [ fhir:TypeRefComponent.code [ fhir:value "dateTime" ] ]; fhir:ElementDefinition.meaningWhenMissing [ fhir:value "If the end of the period is missing, it means that the period is ongoing" ]; fhir:ElementDefinition.condition [ fhir:value "per-1" ]; fhir:ElementDefinition.isSummary [ fhir:value "true" ]; fhir:ElementDefinition.mapping [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "v2" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "DR.2" ] ], [ fhir:ElementDefinitionMappingComponent.identity [ fhir:value "rim" ]; fhir:ElementDefinitionMappingComponent.map [ fhir:value "./high" ] ] ] ] . # -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.
FHIR ®© HL7.org 2011+. FHIR R5 Ballot hl7.fhir.core#5.0.0-ballot generated on Sat, Sep 10, 2022 05:00+1000.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R4B |
Compare to R5 Draft |
|
Propose a change