{ "resourceType": "Bundle", "id": "profiles-others", "meta": { "lastUpdated": "2016-12-07T09:17:27.548-05:00" }, "type": "collection", "entry": [ { "fullUrl": "http://hl7.org/fhir/StructureDefinition/familymemberhistory-genetic", "resource": { "resourceType": "StructureDefinition", "id": "familymemberhistory-genetic", "url": "http://hl7.org/fhir/StructureDefinition/familymemberhistory-genetic", "name": "Family member history for genetics analysis", "status": "draft", "date": "2013-10-02", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "FamilyMemberHistory", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory", "derivation": "constraint", "snapshot": { "element": [ { "id": "FamilyMemberHistory:familymemberhistory-genetic", "path": "FamilyMemberHistory", "sliceName": "FamilyMemberHistory-Genetic", "min": 0, "max": "*", "base": { "path": "FamilyMemberHistory", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "fhs-2", "severity": "error", "human": "Can only have estimatedAge if age[x] is present", "expression": "age.exists() or estimatedAge.empty()", "xpath": "exists(*[starts-with(local-name(.), 'age')]) or not(exists(f:estimatedAge))", "source": "FamilyMemberHistory" }, { "key": "fhs-1", "severity": "error", "human": "Can have age[x] or born[x], but not both", "expression": "age.empty() or born.empty()", "xpath": "not (*[starts-with(local-name(.), 'age')] and *[starts-with(local-name(.), 'birth')])", "source": "FamilyMemberHistory" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.id", "path": "FamilyMemberHistory.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.meta", "path": "FamilyMemberHistory.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.implicitRules", "path": "FamilyMemberHistory.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.language", "path": "FamilyMemberHistory.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.text", "path": "FamilyMemberHistory.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.contained", "path": "FamilyMemberHistory.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension", "path": "FamilyMemberHistory.extension", "slicing": { "id": "91", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:parent", "path": "FamilyMemberHistory.extension", "sliceName": "Parent", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ], "mustSupport": true, "isModifier": false }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:sibling", "path": "FamilyMemberHistory.extension", "sliceName": "Sibling", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-sibling" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ], "mustSupport": true, "isModifier": false }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:observation", "path": "FamilyMemberHistory.extension", "sliceName": "Observation", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-observation" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ], "mustSupport": true, "isModifier": false }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.modifierExtension", "path": "FamilyMemberHistory.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.identifier", "path": "FamilyMemberHistory.identifier", "min": 0, "max": "*", "base": { "path": "FamilyMemberHistory.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.patient", "path": "FamilyMemberHistory.patient", "min": 1, "max": "1", "base": { "path": "FamilyMemberHistory.patient", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.date", "path": "FamilyMemberHistory.date", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.date", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.status", "path": "FamilyMemberHistory.status", "min": 1, "max": "1", "base": { "path": "FamilyMemberHistory.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "A code that identifies the status of the family history record.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/history-status" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.name", "path": "FamilyMemberHistory.name", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.name", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.relationship:relationship", "path": "FamilyMemberHistory.relationship", "sliceName": "Relationship", "min": 1, "max": "1", "base": { "path": "FamilyMemberHistory.relationship", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "example", "description": "The nature of the relationship between the patient and the related person being described in the family member history.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-FamilyMember" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.gender:gender", "path": "FamilyMemberHistory.gender", "sliceName": "Gender", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.gender", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "The gender of a person used for administrative purposes.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/administrative-gender" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.born[x]:bornage", "path": "FamilyMemberHistory.born[x]", "sliceName": "BornAge", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.born[x]", "min": 0, "max": "1" }, "type": [ { "code": "Period" }, { "code": "date" }, { "code": "string" } ], "condition": [ "fhs-1" ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.age[x]:age", "path": "FamilyMemberHistory.age[x]", "sliceName": "Age", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.age[x]", "min": 0, "max": "1" }, "type": [ { "code": "Age" }, { "code": "Range" }, { "code": "string" } ], "condition": [ "fhs-1" ], "mustSupport": true, "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.estimatedAge", "path": "FamilyMemberHistory.estimatedAge", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.estimatedAge", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "meaningWhenMissing": "It is unknown whether the age is an estimate or not", "condition": [ "fhs-2" ], "isModifier": true, "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.deceased[x]:deceasedage", "path": "FamilyMemberHistory.deceased[x]", "sliceName": "DeceasedAge", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.deceased[x]", "min": 0, "max": "1" }, "type": [ { "code": "boolean" }, { "code": "Age" }, { "code": "Range" }, { "code": "date" }, { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.note", "path": "FamilyMemberHistory.note", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.note", "min": 0, "max": "1" }, "type": [ { "code": "Annotation" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition", "path": "FamilyMemberHistory.condition", "sliceName": "Condition", "min": 0, "max": "*", "base": { "path": "FamilyMemberHistory.condition", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.id", "path": "FamilyMemberHistory.condition.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.extension", "path": "FamilyMemberHistory.condition.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.modifierExtension", "path": "FamilyMemberHistory.condition.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.code", "path": "FamilyMemberHistory.condition.code", "min": 1, "max": "1", "base": { "path": "FamilyMemberHistory.condition.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "example", "description": "Identification of the Condition or diagnosis.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/condition-code" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.outcome", "path": "FamilyMemberHistory.condition.outcome", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.condition.outcome", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "example", "description": "The result of the condition for the patient; e.g. death, permanent disability, temporary disability, etc.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/condition-outcome" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.onset[x]", "path": "FamilyMemberHistory.condition.onset[x]", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.condition.onset[x]", "min": 0, "max": "1" }, "type": [ { "code": "Age" }, { "code": "Range" }, { "code": "Period" }, { "code": "string" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.note", "path": "FamilyMemberHistory.condition.note", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.condition.note", "min": 0, "max": "1" }, "type": [ { "code": "Annotation" } ] } ] }, "differential": { "element": [ { "id": "FamilyMemberHistory:familymemberhistory-genetic", "path": "FamilyMemberHistory", "sliceName": "FamilyMemberHistory-Genetic", "min": 0, "max": "*" }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:parent", "path": "FamilyMemberHistory.extension", "sliceName": "Parent", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-parent" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:sibling", "path": "FamilyMemberHistory.extension", "sliceName": "Sibling", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-sibling" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:observation", "path": "FamilyMemberHistory.extension", "sliceName": "Observation", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-observation" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.relationship:relationship", "path": "FamilyMemberHistory.relationship", "sliceName": "Relationship", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.gender:gender", "path": "FamilyMemberHistory.gender", "sliceName": "Gender", "min": 0, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "description": "The gender of a person used for administrative purposes.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/administrative-gender" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.born[x]:bornage", "path": "FamilyMemberHistory.born[x]", "sliceName": "BornAge", "min": 0, "max": "1", "type": [ { "code": "Period" }, { "code": "date" }, { "code": "string" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.age[x]:age", "path": "FamilyMemberHistory.age[x]", "sliceName": "Age", "min": 0, "max": "1", "type": [ { "code": "Age" }, { "code": "Range" }, { "code": "string" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.deceased[x]:deceasedage", "path": "FamilyMemberHistory.deceased[x]", "sliceName": "DeceasedAge", "min": 0, "max": "1", "type": [ { "code": "boolean" }, { "code": "Age" }, { "code": "Range" }, { "code": "date" }, { "code": "string" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition", "path": "FamilyMemberHistory.condition", "sliceName": "Condition", "min": 0, "max": "*", "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.code", "path": "FamilyMemberHistory.condition.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.outcome", "path": "FamilyMemberHistory.condition.outcome", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.onset[x]", "path": "FamilyMemberHistory.condition.onset[x]", "min": 0, "max": "1", "type": [ { "code": "Age" }, { "code": "Range" }, { "code": "Period" }, { "code": "string" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition:condition.note", "path": "FamilyMemberHistory.condition.note", "min": 0, "max": "1", "type": [ { "code": "Annotation" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/shareablevalueset", "resource": { "resourceType": "StructureDefinition", "id": "shareablevalueset", "url": "http://hl7.org/fhir/StructureDefinition/shareablevalueset", "name": "Shareable ValueSet", "status": "draft", "date": "2016-12-07T09:17:27-05:00", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "ValueSet", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ValueSet", "derivation": "constraint", "snapshot": { "element": [ { "id": "ValueSet:shareablevalueset", "path": "ValueSet", "sliceName": "ShareableValueSet", "min": 1, "max": "1", "base": { "path": "ValueSet", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "vsd-5", "severity": "error", "human": "Value set SHALL contain at least one of a a compose, or an expansion element", "expression": "compose.exists() or expansion.exists()", "xpath": "exists(f:compose) or exists(f:expansion)", "source": "ValueSet" } ] }, { "id": "ValueSet:shareablevalueset.id", "path": "ValueSet.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.meta", "path": "ValueSet.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.implicitRules", "path": "ValueSet.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.language", "path": "ValueSet.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "ValueSet:shareablevalueset.text", "path": "ValueSet.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "ValueSet:shareablevalueset.contained", "path": "ValueSet.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "ValueSet:shareablevalueset.extension", "path": "ValueSet.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.modifierExtension", "path": "ValueSet.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "ValueSet:shareablevalueset.url", "path": "ValueSet.url", "min": 1, "max": "1", "base": { "path": "ValueSet.url", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.identifier", "path": "ValueSet.identifier", "min": 0, "max": "*", "base": { "path": "ValueSet.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.version", "path": "ValueSet.version", "min": 1, "max": "1", "base": { "path": "ValueSet.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.name", "path": "ValueSet.name", "min": 1, "max": "1", "base": { "path": "ValueSet.name", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.title", "path": "ValueSet.title", "min": 0, "max": "1", "base": { "path": "ValueSet.title", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.status", "path": "ValueSet.status", "min": 1, "max": "1", "base": { "path": "ValueSet.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The lifecycle status of a Value Set or Concept Map.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/publication-status" } } }, { "id": "ValueSet:shareablevalueset.experimental", "path": "ValueSet.experimental", "min": 1, "max": "1", "base": { "path": "ValueSet.experimental", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.publisher", "path": "ValueSet.publisher", "min": 1, "max": "1", "base": { "path": "ValueSet.publisher", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.contact", "path": "ValueSet.contact", "min": 0, "max": "*", "base": { "path": "ValueSet.contact", "min": 0, "max": "*" }, "type": [ { "code": "ContactDetail" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.date", "path": "ValueSet.date", "min": 0, "max": "1", "base": { "path": "ValueSet.date", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.description", "path": "ValueSet.description", "min": 1, "max": "1", "base": { "path": "ValueSet.description", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ] }, { "id": "ValueSet:shareablevalueset.useContext", "path": "ValueSet.useContext", "min": 0, "max": "*", "base": { "path": "ValueSet.useContext", "min": 0, "max": "*" }, "type": [ { "code": "UsageContext" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.jurisdiction", "path": "ValueSet.jurisdiction", "min": 0, "max": "*", "base": { "path": "ValueSet.jurisdiction", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "Countries and regions within which this artifact is targeted for use", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/jurisdiction" } } }, { "id": "ValueSet:shareablevalueset.immutable", "path": "ValueSet.immutable", "min": 0, "max": "1", "base": { "path": "ValueSet.immutable", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.purpose", "path": "ValueSet.purpose", "min": 0, "max": "1", "base": { "path": "ValueSet.purpose", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ] }, { "id": "ValueSet:shareablevalueset.copyright", "path": "ValueSet.copyright", "min": 0, "max": "1", "base": { "path": "ValueSet.copyright", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ] }, { "id": "ValueSet:shareablevalueset.extensible", "path": "ValueSet.extensible", "min": 0, "max": "1", "base": { "path": "ValueSet.extensible", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose", "path": "ValueSet.compose", "min": 0, "max": "1", "base": { "path": "ValueSet.compose", "min": 0, "max": "1" }, "type": [ { "code": "BackboneElement" } ], "condition": [ "vsd-5" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "ValueSet:shareablevalueset.compose.id", "path": "ValueSet.compose.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.compose.extension", "path": "ValueSet.compose.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.compose.modifierExtension", "path": "ValueSet.compose.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.lockedDate", "path": "ValueSet.compose.lockedDate", "min": 0, "max": "1", "base": { "path": "ValueSet.compose.lockedDate", "min": 0, "max": "1" }, "type": [ { "code": "date" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.inactive", "path": "ValueSet.compose.inactive", "min": 0, "max": "1", "base": { "path": "ValueSet.compose.inactive", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "ConceptSet" } ], "path": "ValueSet.compose.include", "min": 1, "max": "*", "base": { "path": "ValueSet.compose.include", "min": 1, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vsd-2", "severity": "error", "human": "A value set with concepts or filters SHALL include a system", "expression": "(concept.exists() or filter.exists()) implies system.exists()", "xpath": "not(exists(f:concept) or exists(f:filter)) or exists(f:system)" }, { "key": "vsd-3", "severity": "error", "human": "Cannot have both concept and filter", "expression": "concept.empty() or filter.empty()", "xpath": "not(exists(f:concept)) or not(exists(f:filter))" }, { "key": "vsd-1", "severity": "error", "human": "A value set include/exclude SHALL have a value set or a system", "expression": "valueSet.exists() or system.exists()", "xpath": "exists(f:valueSet) or exists(f:system)" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include.id", "path": "ValueSet.compose.include.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.extension", "path": "ValueSet.compose.include.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.modifierExtension", "path": "ValueSet.compose.include.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include.system", "path": "ValueSet.compose.include.system", "min": 0, "max": "1", "base": { "path": "ValueSet.compose.include.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "condition": [ "vsd-1", "vsd-2" ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include.version", "path": "ValueSet.compose.include.version", "min": 0, "max": "1", "base": { "path": "ValueSet.compose.include.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include.concept", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "ConceptReference" } ], "path": "ValueSet.compose.include.concept", "min": 0, "max": "*", "base": { "path": "ValueSet.compose.include.concept", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "condition": [ "vsd-3" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.id", "path": "ValueSet.compose.include.concept.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.extension", "path": "ValueSet.compose.include.concept.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.modifierExtension", "path": "ValueSet.compose.include.concept.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include.concept.code", "path": "ValueSet.compose.include.concept.code", "min": 1, "max": "1", "base": { "path": "ValueSet.compose.include.concept.code", "min": 1, "max": "1" }, "type": [ { "code": "code" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.display", "path": "ValueSet.compose.include.concept.display", "min": 0, "max": "1", "base": { "path": "ValueSet.compose.include.concept.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.designation", "path": "ValueSet.compose.include.concept.designation", "min": 0, "max": "*", "base": { "path": "ValueSet.compose.include.concept.designation", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.designation.id", "path": "ValueSet.compose.include.concept.designation.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.designation.extension", "path": "ValueSet.compose.include.concept.designation.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.concept.designation.modifierExtension", "path": "ValueSet.compose.include.concept.designation.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include.concept.designation.language", "path": "ValueSet.compose.include.concept.designation.language", "min": 0, "max": "1", "base": { "path": "ValueSet.compose.include.concept.designation.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "ValueSet:shareablevalueset.compose.include.concept.designation.use", "path": "ValueSet.compose.include.concept.designation.use", "min": 0, "max": "1", "base": { "path": "ValueSet.compose.include.concept.designation.use", "min": 0, "max": "1" }, "type": [ { "code": "Coding" } ], "binding": { "strength": "extensible", "description": "Details of how a designation would be used.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/designation-use" } } }, { "id": "ValueSet:shareablevalueset.compose.include.concept.designation.value", "path": "ValueSet.compose.include.concept.designation.value", "min": 1, "max": "1", "base": { "path": "ValueSet.compose.include.concept.designation.value", "min": 1, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.filter", "path": "ValueSet.compose.include.filter", "min": 0, "max": "*", "base": { "path": "ValueSet.compose.include.filter", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "condition": [ "vsd-3" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.filter.id", "path": "ValueSet.compose.include.filter.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.filter.extension", "path": "ValueSet.compose.include.filter.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.filter.modifierExtension", "path": "ValueSet.compose.include.filter.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.include.filter.property", "path": "ValueSet.compose.include.filter.property", "min": 1, "max": "1", "base": { "path": "ValueSet.compose.include.filter.property", "min": 1, "max": "1" }, "type": [ { "code": "code" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.filter.op", "path": "ValueSet.compose.include.filter.op", "min": 1, "max": "1", "base": { "path": "ValueSet.compose.include.filter.op", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "binding": { "strength": "required", "description": "The kind of operation to perform as a part of a property based filter.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/filter-operator" } } }, { "id": "ValueSet:shareablevalueset.compose.include.filter.value", "path": "ValueSet.compose.include.filter.value", "min": 1, "max": "1", "base": { "path": "ValueSet.compose.include.filter.value", "min": 1, "max": "1" }, "type": [ { "code": "code" } ] }, { "id": "ValueSet:shareablevalueset.compose.include.valueSet", "path": "ValueSet.compose.include.valueSet", "min": 0, "max": "*", "base": { "path": "ValueSet.compose.include.valueSet", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "condition": [ "vsd-1" ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.compose.exclude", "path": "ValueSet.compose.exclude", "min": 0, "max": "*", "base": { "path": "ValueSet.compose.exclude", "min": 0, "max": "*" }, "contentReference": "#ValueSet:shareablevalueset.compose.include", "condition": [ "vsd-2" ] }, { "id": "ValueSet:shareablevalueset.expansion", "path": "ValueSet.expansion", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion", "min": 0, "max": "1" }, "type": [ { "code": "BackboneElement" } ], "condition": [ "vsd-5" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "ValueSet:shareablevalueset.expansion.id", "path": "ValueSet.expansion.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.expansion.extension", "path": "ValueSet.expansion.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.expansion.modifierExtension", "path": "ValueSet.expansion.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.expansion.identifier", "path": "ValueSet.expansion.identifier", "min": 1, "max": "1", "base": { "path": "ValueSet.expansion.identifier", "min": 1, "max": "1" }, "type": [ { "code": "uri" } ] }, { "id": "ValueSet:shareablevalueset.expansion.timestamp", "path": "ValueSet.expansion.timestamp", "min": 1, "max": "1", "base": { "path": "ValueSet.expansion.timestamp", "min": 1, "max": "1" }, "type": [ { "code": "dateTime" } ] }, { "id": "ValueSet:shareablevalueset.expansion.total", "path": "ValueSet.expansion.total", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.total", "min": 0, "max": "1" }, "type": [ { "code": "integer" } ] }, { "id": "ValueSet:shareablevalueset.expansion.offset", "path": "ValueSet.expansion.offset", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.offset", "min": 0, "max": "1" }, "type": [ { "code": "integer" } ], "meaningWhenMissing": "Paging is not being used" }, { "id": "ValueSet:shareablevalueset.expansion.parameter", "path": "ValueSet.expansion.parameter", "min": 0, "max": "*", "base": { "path": "ValueSet.expansion.parameter", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "ValueSet:shareablevalueset.expansion.parameter.id", "path": "ValueSet.expansion.parameter.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.expansion.parameter.extension", "path": "ValueSet.expansion.parameter.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.expansion.parameter.modifierExtension", "path": "ValueSet.expansion.parameter.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.expansion.parameter.name", "path": "ValueSet.expansion.parameter.name", "min": 1, "max": "1", "base": { "path": "ValueSet.expansion.parameter.name", "min": 1, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.expansion.parameter.value[x]", "path": "ValueSet.expansion.parameter.value[x]", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.parameter.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "string" }, { "code": "boolean" }, { "code": "integer" }, { "code": "decimal" }, { "code": "uri" }, { "code": "code" } ] }, { "id": "ValueSet:shareablevalueset.expansion.contains", "path": "ValueSet.expansion.contains", "min": 0, "max": "*", "base": { "path": "ValueSet.expansion.contains", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vsd-6", "severity": "error", "human": "SHALL have a code or a display", "expression": "code.exists() or display.exists()", "xpath": "exists(f:code) or exists(f:display)" }, { "key": "vsd-9", "severity": "error", "human": "Must have a code if not abstract", "expression": "code.exists() or abstract = true", "xpath": "exists(f:code) or (f:abstract/@value = true())" }, { "key": "vsd-10", "severity": "error", "human": "Must have a system if a code is present", "expression": "code.empty() or system.exists()", "xpath": "exists(f:system) or not(exists(f:code))" } ] }, { "id": "ValueSet:shareablevalueset.expansion.contains.id", "path": "ValueSet.expansion.contains.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.expansion.contains.extension", "path": "ValueSet.expansion.contains.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.expansion.contains.modifierExtension", "path": "ValueSet.expansion.contains.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.expansion.contains.system", "path": "ValueSet.expansion.contains.system", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.contains.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ] }, { "id": "ValueSet:shareablevalueset.expansion.contains.abstract", "path": "ValueSet.expansion.contains.abstract", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.contains.abstract", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false }, { "id": "ValueSet:shareablevalueset.expansion.contains.inactive", "path": "ValueSet.expansion.contains.inactive", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.contains.inactive", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false }, { "id": "ValueSet:shareablevalueset.expansion.contains.version", "path": "ValueSet.expansion.contains.version", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.contains.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.expansion.contains.code", "path": "ValueSet.expansion.contains.code", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.contains.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "condition": [ "vsd-6" ] }, { "id": "ValueSet:shareablevalueset.expansion.contains.display", "path": "ValueSet.expansion.contains.display", "min": 0, "max": "1", "base": { "path": "ValueSet.expansion.contains.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "condition": [ "vsd-6" ] }, { "id": "ValueSet:shareablevalueset.expansion.contains.designation", "path": "ValueSet.expansion.contains.designation", "min": 0, "max": "*", "base": { "path": "ValueSet.expansion.contains.designation", "min": 0, "max": "*" }, "contentReference": "#ValueSet:shareablevalueset.compose.include.concept.designation" }, { "id": "ValueSet:shareablevalueset.expansion.contains.contains", "path": "ValueSet.expansion.contains.contains", "min": 0, "max": "*", "base": { "path": "ValueSet.expansion.contains.contains", "min": 0, "max": "*" }, "contentReference": "#ValueSet:shareablevalueset.expansion.contains" } ] }, "differential": { "element": [ { "id": "ValueSet:shareablevalueset", "path": "ValueSet", "sliceName": "ShareableValueSet", "min": 1, "max": "1" }, { "id": "ValueSet:shareablevalueset.url", "path": "ValueSet.url", "min": 1, "max": "1", "type": [ { "code": "uri" } ] }, { "id": "ValueSet:shareablevalueset.version", "path": "ValueSet.version", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.name", "path": "ValueSet.name", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.status", "path": "ValueSet.status", "min": 1, "max": "1", "type": [ { "code": "code" } ] }, { "id": "ValueSet:shareablevalueset.experimental", "path": "ValueSet.experimental", "min": 1, "max": "1", "type": [ { "code": "boolean" } ] }, { "id": "ValueSet:shareablevalueset.publisher", "path": "ValueSet.publisher", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.description", "path": "ValueSet.description", "min": 1, "max": "1", "type": [ { "code": "markdown" } ] }, { "id": "ValueSet:shareablevalueset.immutable", "path": "ValueSet.immutable", "min": 0, "max": "1", "type": [ { "code": "boolean" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/diagnosticrequest-genetics", "resource": { "resourceType": "StructureDefinition", "id": "diagnosticrequest-genetics", "url": "http://hl7.org/fhir/StructureDefinition/diagnosticrequest-genetics", "name": "DiagnosticRequest-Genetics", "status": "draft", "date": "2015-10-20", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "DiagnosticRequest", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticRequest:diagnosticrequest-genetics", "path": "DiagnosticRequest", "sliceName": "DiagnosticRequest-Genetics", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" } ] }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.id", "path": "DiagnosticRequest.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.meta", "path": "DiagnosticRequest.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.implicitRules", "path": "DiagnosticRequest.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.language", "path": "DiagnosticRequest.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.text", "path": "DiagnosticRequest.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.contained", "path": "DiagnosticRequest.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.extension:item", "path": "DiagnosticRequest.extension", "sliceName": "Item", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/diagnosticrequest-geneticsItem" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.modifierExtension", "path": "DiagnosticRequest.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.identifier", "path": "DiagnosticRequest.identifier", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.definition", "path": "DiagnosticRequest.definition", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.definition", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.basedOn", "path": "DiagnosticRequest.basedOn", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.basedOn", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.replaces", "path": "DiagnosticRequest.replaces", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.replaces", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.requisition", "path": "DiagnosticRequest.requisition", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.requisition", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.status", "path": "DiagnosticRequest.status", "min": 1, "max": "1", "base": { "path": "DiagnosticRequest.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The status of a diagnostic order.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/request-status" } } }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.intent", "path": "DiagnosticRequest.intent", "min": 1, "max": "1", "base": { "path": "DiagnosticRequest.intent", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The kind of diagnostic request", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/request-intent" } } }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.priority", "path": "DiagnosticRequest.priority", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.priority", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If missing, this task should be performed with normal priority", "isSummary": true, "binding": { "strength": "required", "description": "Identifies the level of importance to be assigned to actioning the request", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/request-priority" } } }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.code", "path": "DiagnosticRequest.code", "min": 1, "max": "1", "base": { "path": "DiagnosticRequest.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "preferred", "description": "Codes for tests/services that can be performed by diagnostic services.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-requests" } } }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.subject", "path": "DiagnosticRequest.subject", "min": 1, "max": "1", "base": { "path": "DiagnosticRequest.subject", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.context", "path": "DiagnosticRequest.context", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.context", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.occurrence[x]", "path": "DiagnosticRequest.occurrence[x]", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.occurrence[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" }, { "code": "Timing" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.authoredOn", "path": "DiagnosticRequest.authoredOn", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.authoredOn", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.requester", "path": "DiagnosticRequest.requester", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.requester", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.performerType", "path": "DiagnosticRequest.performerType", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.performerType", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Indicates specific responsibility of an individual within the care team, such as \"Primary physician\", \"Team coordinator\", \"Caregiver\", etc.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/participant-role" } } }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.performer", "path": "DiagnosticRequest.performer", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.performer", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.reasonCode", "path": "DiagnosticRequest.reasonCode", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.reasonCode", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Diagnosis or problem codes justifying the reason for requesting the diagnostic investigation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/condition-code" } } }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.reasonReference", "path": "DiagnosticRequest.reasonReference", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.reasonReference", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Condition" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" } ], "isSummary": true }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.supportingInformation", "path": "DiagnosticRequest.supportingInformation", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.supportingInformation", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ] }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.note", "path": "DiagnosticRequest.note", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.note", "min": 0, "max": "*" }, "type": [ { "code": "Annotation" } ] }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.relevantHistory", "path": "DiagnosticRequest.relevantHistory", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.relevantHistory", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Provenance" } ] } ] }, "differential": { "element": [ { "id": "DiagnosticRequest:diagnosticrequest-genetics", "path": "DiagnosticRequest", "sliceName": "DiagnosticRequest-Genetics", "min": 0, "max": "*" }, { "id": "DiagnosticRequest:diagnosticrequest-genetics.extension:item", "path": "DiagnosticRequest.extension", "sliceName": "Item", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/diagnosticrequest-geneticsItem" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/shareablecodesystem", "resource": { "resourceType": "StructureDefinition", "id": "shareablecodesystem", "url": "http://hl7.org/fhir/StructureDefinition/shareablecodesystem", "name": "Shareable CodeSystem", "status": "draft", "date": "2016-12-07T09:17:27-05:00", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "CodeSystem", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CodeSystem", "derivation": "constraint", "snapshot": { "element": [ { "id": "CodeSystem:shareablecodesystem", "path": "CodeSystem", "sliceName": "ShareableCodeSystem", "min": 1, "max": "1", "base": { "path": "CodeSystem", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "csd-1", "severity": "error", "human": "Within a code system definition, all the codes SHALL be unique", "expression": "(concept.code | descendants().concept.code).isDistinct()", "xpath": "count(distinct-values(descendant::f:concept/f:code/@value))=count(descendant::f:concept)", "source": "CodeSystem" } ] }, { "id": "CodeSystem:shareablecodesystem.id", "path": "CodeSystem.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.meta", "path": "CodeSystem.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.implicitRules", "path": "CodeSystem.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.language", "path": "CodeSystem.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "CodeSystem:shareablecodesystem.text", "path": "CodeSystem.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "CodeSystem:shareablecodesystem.contained", "path": "CodeSystem.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "CodeSystem:shareablecodesystem.extension", "path": "CodeSystem.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "CodeSystem:shareablecodesystem.modifierExtension", "path": "CodeSystem.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "CodeSystem:shareablecodesystem.url", "path": "CodeSystem.url", "min": 1, "max": "1", "base": { "path": "CodeSystem.url", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.identifier", "path": "CodeSystem.identifier", "min": 0, "max": "1", "base": { "path": "CodeSystem.identifier", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.version", "path": "CodeSystem.version", "min": 1, "max": "1", "base": { "path": "CodeSystem.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.name", "path": "CodeSystem.name", "min": 1, "max": "1", "base": { "path": "CodeSystem.name", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.title", "path": "CodeSystem.title", "min": 0, "max": "1", "base": { "path": "CodeSystem.title", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.status", "path": "CodeSystem.status", "min": 1, "max": "1", "base": { "path": "CodeSystem.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The lifecycle status of a Value Set or Concept Map.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/publication-status" } } }, { "id": "CodeSystem:shareablecodesystem.experimental", "path": "CodeSystem.experimental", "min": 1, "max": "1", "base": { "path": "CodeSystem.experimental", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.publisher", "path": "CodeSystem.publisher", "min": 1, "max": "1", "base": { "path": "CodeSystem.publisher", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.contact", "path": "CodeSystem.contact", "min": 0, "max": "*", "base": { "path": "CodeSystem.contact", "min": 0, "max": "*" }, "type": [ { "code": "ContactDetail" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.date", "path": "CodeSystem.date", "min": 0, "max": "1", "base": { "path": "CodeSystem.date", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.description", "path": "CodeSystem.description", "min": 1, "max": "1", "base": { "path": "CodeSystem.description", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ] }, { "id": "CodeSystem:shareablecodesystem.useContext", "path": "CodeSystem.useContext", "min": 0, "max": "*", "base": { "path": "CodeSystem.useContext", "min": 0, "max": "*" }, "type": [ { "code": "UsageContext" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.jurisdiction", "path": "CodeSystem.jurisdiction", "min": 0, "max": "*", "base": { "path": "CodeSystem.jurisdiction", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "Countries and regions within which this artifact is targeted for use", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/jurisdiction" } } }, { "id": "CodeSystem:shareablecodesystem.purpose", "path": "CodeSystem.purpose", "min": 0, "max": "1", "base": { "path": "CodeSystem.purpose", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ] }, { "id": "CodeSystem:shareablecodesystem.copyright", "path": "CodeSystem.copyright", "min": 0, "max": "1", "base": { "path": "CodeSystem.copyright", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ] }, { "id": "CodeSystem:shareablecodesystem.caseSensitive", "path": "CodeSystem.caseSensitive", "min": 1, "max": "1", "base": { "path": "CodeSystem.caseSensitive", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.valueSet", "path": "CodeSystem.valueSet", "min": 0, "max": "1", "base": { "path": "CodeSystem.valueSet", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.hierarchyMeaning", "path": "CodeSystem.hierarchyMeaning", "min": 0, "max": "1", "base": { "path": "CodeSystem.hierarchyMeaning", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The meaning of the hierarchy of concepts in a code system", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/codesystem-hierarchy-meaning" } } }, { "id": "CodeSystem:shareablecodesystem.compositional", "path": "CodeSystem.compositional", "min": 0, "max": "1", "base": { "path": "CodeSystem.compositional", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.versionNeeded", "path": "CodeSystem.versionNeeded", "min": 0, "max": "1", "base": { "path": "CodeSystem.versionNeeded", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.content", "path": "CodeSystem.content", "min": 1, "max": "1", "base": { "path": "CodeSystem.content", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How much of the content of the code system - the concepts and codes it defines - are represented in a code system resource", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/codesystem-content-mode" } } }, { "id": "CodeSystem:shareablecodesystem.count", "path": "CodeSystem.count", "min": 0, "max": "1", "base": { "path": "CodeSystem.count", "min": 0, "max": "1" }, "type": [ { "code": "unsignedInt" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.filter", "path": "CodeSystem.filter", "min": 0, "max": "*", "base": { "path": "CodeSystem.filter", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.filter.id", "path": "CodeSystem.filter.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.filter.extension", "path": "CodeSystem.filter.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "CodeSystem:shareablecodesystem.filter.modifierExtension", "path": "CodeSystem.filter.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.filter.code", "path": "CodeSystem.filter.code", "min": 1, "max": "1", "base": { "path": "CodeSystem.filter.code", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.filter.description", "path": "CodeSystem.filter.description", "min": 0, "max": "1", "base": { "path": "CodeSystem.filter.description", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.filter.operator", "path": "CodeSystem.filter.operator", "min": 1, "max": "*", "base": { "path": "CodeSystem.filter.operator", "min": 1, "max": "*" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The kind of operation to perform as a part of a property based filter.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/filter-operator" } } }, { "id": "CodeSystem:shareablecodesystem.filter.value", "path": "CodeSystem.filter.value", "min": 1, "max": "1", "base": { "path": "CodeSystem.filter.value", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.property", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "Property" } ], "path": "CodeSystem.property", "min": 0, "max": "*", "base": { "path": "CodeSystem.property", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.property.id", "path": "CodeSystem.property.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.property.extension", "path": "CodeSystem.property.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "CodeSystem:shareablecodesystem.property.modifierExtension", "path": "CodeSystem.property.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.property.code", "path": "CodeSystem.property.code", "min": 1, "max": "1", "base": { "path": "CodeSystem.property.code", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.property.uri", "path": "CodeSystem.property.uri", "min": 0, "max": "1", "base": { "path": "CodeSystem.property.uri", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.property.description", "path": "CodeSystem.property.description", "min": 0, "max": "1", "base": { "path": "CodeSystem.property.description", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.property.type", "path": "CodeSystem.property.type", "min": 1, "max": "1", "base": { "path": "CodeSystem.property.type", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The type of a property value", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/concept-property-type" } } }, { "id": "CodeSystem:shareablecodesystem.concept", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "ConceptDefinition" } ], "path": "CodeSystem.concept", "min": 1, "max": "*", "base": { "path": "CodeSystem.concept", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.id", "path": "CodeSystem.concept.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.extension", "path": "CodeSystem.concept.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.modifierExtension", "path": "CodeSystem.concept.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.concept.code", "path": "CodeSystem.concept.code", "min": 1, "max": "1", "base": { "path": "CodeSystem.concept.code", "min": 1, "max": "1" }, "type": [ { "code": "code" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.display", "path": "CodeSystem.concept.display", "min": 1, "max": "1", "base": { "path": "CodeSystem.concept.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.definition", "path": "CodeSystem.concept.definition", "min": 1, "max": "1", "base": { "path": "CodeSystem.concept.definition", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.designation", "path": "CodeSystem.concept.designation", "min": 0, "max": "*", "base": { "path": "CodeSystem.concept.designation", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.designation.id", "path": "CodeSystem.concept.designation.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.designation.extension", "path": "CodeSystem.concept.designation.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.designation.modifierExtension", "path": "CodeSystem.concept.designation.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.concept.designation.language", "path": "CodeSystem.concept.designation.language", "min": 0, "max": "1", "base": { "path": "CodeSystem.concept.designation.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "CodeSystem:shareablecodesystem.concept.designation.use", "path": "CodeSystem.concept.designation.use", "min": 0, "max": "1", "base": { "path": "CodeSystem.concept.designation.use", "min": 0, "max": "1" }, "type": [ { "code": "Coding" } ], "binding": { "strength": "extensible", "description": "Details of how a designation would be used.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/designation-use" } } }, { "id": "CodeSystem:shareablecodesystem.concept.designation.value", "path": "CodeSystem.concept.designation.value", "min": 1, "max": "1", "base": { "path": "CodeSystem.concept.designation.value", "min": 1, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.property", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "ConceptProperty" } ], "path": "CodeSystem.concept.property", "min": 0, "max": "*", "base": { "path": "CodeSystem.concept.property", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.property.id", "path": "CodeSystem.concept.property.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.property.extension", "path": "CodeSystem.concept.property.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.property.modifierExtension", "path": "CodeSystem.concept.property.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.concept.property.code", "path": "CodeSystem.concept.property.code", "min": 1, "max": "1", "base": { "path": "CodeSystem.concept.property.code", "min": 1, "max": "1" }, "type": [ { "code": "code" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.property.value[x]", "path": "CodeSystem.concept.property.value[x]", "min": 1, "max": "1", "base": { "path": "CodeSystem.concept.property.value[x]", "min": 1, "max": "1" }, "type": [ { "code": "code" }, { "code": "Coding" }, { "code": "string" }, { "code": "integer" }, { "code": "boolean" }, { "code": "dateTime" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.concept", "path": "CodeSystem.concept.concept", "min": 0, "max": "*", "base": { "path": "CodeSystem.concept.concept", "min": 0, "max": "*" }, "contentReference": "#CodeSystem:shareablecodesystem.concept" } ] }, "differential": { "element": [ { "id": "CodeSystem:shareablecodesystem", "path": "CodeSystem", "sliceName": "ShareableCodeSystem", "min": 1, "max": "1" }, { "id": "CodeSystem:shareablecodesystem.url", "path": "CodeSystem.url", "min": 1, "max": "1", "type": [ { "code": "uri" } ] }, { "id": "CodeSystem:shareablecodesystem.version", "path": "CodeSystem.version", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.name", "path": "CodeSystem.name", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.status", "path": "CodeSystem.status", "min": 1, "max": "1", "type": [ { "code": "code" } ] }, { "id": "CodeSystem:shareablecodesystem.experimental", "path": "CodeSystem.experimental", "min": 1, "max": "1", "type": [ { "code": "boolean" } ] }, { "id": "CodeSystem:shareablecodesystem.publisher", "path": "CodeSystem.publisher", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.description", "path": "CodeSystem.description", "min": 1, "max": "1", "type": [ { "code": "markdown" } ] }, { "id": "CodeSystem:shareablecodesystem.caseSensitive", "path": "CodeSystem.caseSensitive", "min": 1, "max": "1", "type": [ { "code": "boolean" } ] }, { "id": "CodeSystem:shareablecodesystem.concept", "path": "CodeSystem.concept", "min": 1, "max": "*" }, { "id": "CodeSystem:shareablecodesystem.concept.code", "path": "CodeSystem.concept.code", "min": 1, "max": "1", "type": [ { "code": "code" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.display", "path": "CodeSystem.concept.display", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.definition", "path": "CodeSystem.concept.definition", "min": 1, "max": "1", "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.concept", "path": "CodeSystem.concept.concept", "min": 0, "max": "*", "contentReference": "#CodeSystem:shareablecodesystem.concept" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/devicemetricobservation", "resource": { "resourceType": "StructureDefinition", "id": "devicemetricobservation", "url": "http://hl7.org/fhir/StructureDefinition/devicemetricobservation", "name": "Device Metric Observation Profile", "status": "draft", "date": "2014-11-17", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:devicemetricobservation", "path": "Observation", "sliceName": "DeviceMetricObservation", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" } ] }, { "id": "Observation:devicemetricobservation.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:devicemetricobservation.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:devicemetricobservation.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:devicemetricobservation.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:devicemetricobservation.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:devicemetricobservation.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Codes providing the status of an observation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:devicemetricobservation.category", "path": "Observation.category", "min": 0, "max": "*", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:devicemetricobservation.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:devicemetricobservation.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.encounter", "path": "Observation.encounter", "min": 0, "max": "0", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.effectiveDateTime", "path": "Observation.effectiveDateTime", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.issued", "path": "Observation.issued", "min": 0, "max": "0", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "mustSupport": false, "isSummary": true }, { "id": "Observation:devicemetricobservation.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.value[x]", "path": "Observation.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "0", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": false, "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:devicemetricobservation.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": false, "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:devicemetricobservation.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:devicemetricobservation.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:devicemetricobservation.specimen", "path": "Observation.specimen", "min": 0, "max": "0", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.device", "path": "Observation.device", "min": 1, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", "source": "Observation.referenceRange" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:devicemetricobservation.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:devicemetricobservation.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:devicemetricobservation.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:devicemetricobservation.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:devicemetricobservation.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:devicemetricobservation.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:devicemetricobservation.related", "path": "Observation.related", "min": 0, "max": "1", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:devicemetricobservation.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:devicemetricobservation.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.related.type", "path": "Observation.related.type", "min": 0, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:devicemetricobservation.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:devicemetricobservation.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:devicemetricobservation.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:devicemetricobservation.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:devicemetricobservation.component.value[x]", "path": "Observation.component.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:devicemetricobservation.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:devicemetricobservation.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:devicemetricobservation.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:devicemetricobservation", "path": "Observation", "sliceName": "DeviceMetricObservation", "min": 0, "max": "*" }, { "id": "Observation:devicemetricobservation.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "type": [ { "code": "Identifier" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.status", "path": "Observation.status", "min": 1, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.code", "path": "Observation.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.subject", "path": "Observation.subject", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.encounter", "path": "Observation.encounter", "min": 0, "max": "0", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.effectiveDateTime", "path": "Observation.effectiveDateTime", "min": 1, "max": "1", "type": [ { "code": "dateTime" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.issued", "path": "Observation.issued", "min": 0, "max": "0", "type": [ { "code": "instant" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.value[x]", "path": "Observation.value[x]", "min": 0, "max": "1", "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "0", "type": [ { "code": "CodeableConcept" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.comment", "path": "Observation.comment", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.method", "path": "Observation.method", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.specimen", "path": "Observation.specimen", "min": 0, "max": "0", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.device", "path": "Observation.device", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "1", "mustSupport": true }, { "id": "Observation:devicemetricobservation.related", "path": "Observation.related", "min": 0, "max": "1", "mustSupport": true }, { "id": "Observation:devicemetricobservation.related.type", "path": "Observation.related.type", "min": 0, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" } ], "mustSupport": true } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/observation-genetics", "resource": { "resourceType": "StructureDefinition", "id": "observation-genetics", "url": "http://hl7.org/fhir/StructureDefinition/observation-genetics", "name": "Observation-genetics", "status": "draft", "date": "2016-03-14", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:observation-genetics", "path": "Observation", "sliceName": "Observation-Genetics", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" } ] }, { "id": "Observation:observation-genetics.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:observation-genetics.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:observation-genetics.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:observation-genetics.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:observation-genetics.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:observation-genetics.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:observation-genetics.extension", "path": "Observation.extension", "slicing": { "id": "92", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:dnasequencevarianttype", "path": "Observation.extension", "sliceName": "DNASequenceVariantType", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNASequenceVariantType" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:aminoacidchangename", "path": "Observation.extension", "sliceName": "AminoAcidChangeName", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:aminoacidchangetype", "path": "Observation.extension", "sliceName": "AminoAcidChangeType", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeType" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:genesymbol", "path": "Observation.extension", "sliceName": "GeneSymbol", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsGene" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:dnaregionname", "path": "Observation.extension", "sliceName": "DNARegionName", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNARegionName" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:allelename", "path": "Observation.extension", "sliceName": "AlleleName", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAlleleName" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:allelicstate", "path": "Observation.extension", "sliceName": "AllelicState", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAllelicState" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:allelicfrequency", "path": "Observation.extension", "sliceName": "AllelicFrequency", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAllelicFrequency" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:copynumberevent", "path": "Observation.extension", "sliceName": "CopyNumberEvent", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsCopyNumberEvent" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:genomicsourceclass", "path": "Observation.extension", "sliceName": "GenomicSourceClass", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsGenomicSourceClass" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:phaseset", "path": "Observation.extension", "sliceName": "PhaseSet", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsPhaseSet" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:sequence", "path": "Observation.extension", "sliceName": "Sequence", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsSequence" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.extension:interpretation", "path": "Observation.extension", "sliceName": "Interpretation", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsInterpretation" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:observation-genetics.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:observation-genetics.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:observation-genetics.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Codes providing the status of an observation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:observation-genetics.category", "path": "Observation.category", "min": 0, "max": "*", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:observation-genetics.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:observation-genetics.subject", "path": "Observation.subject", "min": 0, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "Observation:observation-genetics.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:observation-genetics.effective[x]", "path": "Observation.effective[x]", "min": 0, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:observation-genetics.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:observation-genetics.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:observation-genetics.value[x]", "path": "Observation.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "condition": [ "obs-7" ], "isSummary": true }, { "id": "Observation:observation-genetics.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:observation-genetics.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:observation-genetics.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observation-genetics.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:observation-genetics.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:observation-genetics.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:observation-genetics.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:observation-genetics.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:observation-genetics.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observation-genetics.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observation-genetics.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:observation-genetics.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:observation-genetics.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:observation-genetics.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:observation-genetics.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:observation-genetics.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observation-genetics.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:observation-genetics.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observation-genetics.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observation-genetics.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:observation-genetics.related.type", "path": "Observation.related.type", "min": 0, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:observation-genetics.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:observation-genetics.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:observation-genetics.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observation-genetics.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observation-genetics.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:observation-genetics.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:observation-genetics.component.value[x]", "path": "Observation.component.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:observation-genetics.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:observation-genetics.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:observation-genetics.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:observation-genetics.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:observation-genetics", "path": "Observation", "sliceName": "Observation-Genetics", "min": 0, "max": "*" }, { "id": "Observation:observation-genetics.extension:dnasequencevarianttype", "path": "Observation.extension", "sliceName": "DNASequenceVariantType", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNASequenceVariantType" } ] }, { "id": "Observation:observation-genetics.extension:aminoacidchangename", "path": "Observation.extension", "sliceName": "AminoAcidChangeName", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeName" } ] }, { "id": "Observation:observation-genetics.extension:aminoacidchangetype", "path": "Observation.extension", "sliceName": "AminoAcidChangeType", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeType" } ] }, { "id": "Observation:observation-genetics.extension:genesymbol", "path": "Observation.extension", "sliceName": "GeneSymbol", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsGene" } ] }, { "id": "Observation:observation-genetics.extension:dnaregionname", "path": "Observation.extension", "sliceName": "DNARegionName", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNARegionName" } ] }, { "id": "Observation:observation-genetics.extension:allelename", "path": "Observation.extension", "sliceName": "AlleleName", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAlleleName" } ] }, { "id": "Observation:observation-genetics.extension:allelicstate", "path": "Observation.extension", "sliceName": "AllelicState", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAllelicState" } ] }, { "id": "Observation:observation-genetics.extension:allelicfrequency", "path": "Observation.extension", "sliceName": "AllelicFrequency", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAllelicFrequency" } ] }, { "id": "Observation:observation-genetics.extension:copynumberevent", "path": "Observation.extension", "sliceName": "CopyNumberEvent", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsCopyNumberEvent" } ] }, { "id": "Observation:observation-genetics.extension:genomicsourceclass", "path": "Observation.extension", "sliceName": "GenomicSourceClass", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsGenomicSourceClass" } ] }, { "id": "Observation:observation-genetics.extension:phaseset", "path": "Observation.extension", "sliceName": "PhaseSet", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsPhaseSet" } ] }, { "id": "Observation:observation-genetics.extension:sequence", "path": "Observation.extension", "sliceName": "Sequence", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsSequence" } ] }, { "id": "Observation:observation-genetics.extension:interpretation", "path": "Observation.extension", "sliceName": "Interpretation", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsInterpretation" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "resource": { "resourceType": "StructureDefinition", "id": "vitalsigns", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "### Complete Summary of the Mandatory Requirements\n\n1. One status in `Observation.status`which has a [required](http://build.fhir.org/terminologies.html#extensible) binding to:\n - [ObservationStatus] value set.\n1. One category in `Observation.category` which must have:\n - a fixed `Observation.category.coding.system`=\"http://hl7.org/fhir/observation-category\"\n - a fixed `Observation.category.coding.code`= \"vital-signs\"\n\n1. A code in `Observation.code`\n - a fixed `Observation.code.coding.system`= \"http://loinc.org\"\n - a LOINC code in `Observation.code.coding.code` which has an [extensible](http://build.fhir.org/terminologies.html#extensible) binding to:\n - [Vital Signs] value set.\n \n1. One patient in `Observation.subject`\n1. A date and time in `effectiveDateTime` or `effectivePeriod`\n1. Either one `Observation.valueQuantity` or, if there is no value, one code in `Observation.DataAbsentReason`\n - Each Observation.valueQuantity must have:\n - One numeric value in `Observation.valueQuantity.value`\n - a fixed `Observation.valueQuantity.system`=\"http://unitsofmeasure\"\n - a UCUM unit code in `Observation.valueQuantity.code` which has an [required] binding to:\n - [Vital Signs Units] value set.\n - Observation.DataAbsentReason is bound to [Observation Value\n Absent Reason] value set.\n\n1. When using a panel code to group component observations (Note: See\n the comments regarding blood pressure in the table above), one or\n more `Observation.component.code` each of which must have:\n - a fixed\n `Observation.component.code.coding.system` =\"\"\n - a LOINC code in `Observation.code.coding.code` which has an [extensible] binding to:\n - [Vital Signs Units] value set.\n\n1. Either one `Observation.component.valueQuantity` or, if there is\n no value, one code in `Observation.component.DataAbsentReason`\n - Each Observation.component.valueQuantity must have:\n - One numeric value in\n `Observation.component.valueQuantity.value`\n - a fixed `Observation.component.valueQuantity.system`= \"\"\n - a UCUM unit code in\n `Observation.component.valueQuantity.code` which has an [required] binding to:\n - [Vital Signs Units] value set.\n - Observation.component.DataAbsentReason is bound to [Observation\n Value Absent Reason] value set.\n\n1. When using a panel code to group observations, one or more reference\n to Vitals Signs Observations in `Observation.related.target`\n - a fixed `Observation.related.type`= \"has-member\"\n\n [Vital Signs]: valueset-observation-vitalsignresult.html\n [Vital Signs Units]: valueset-ucum-vitals-common.html\n [extensible]: terminologies.html#extensible\n [ObservationStatus]: valueset-observation-status.html\n [Observation Value Absent Reason]: valueset-observation-valueabsentreason.html\n[required]: terminologies.html#required" } ], "url": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:vitalsigns", "path": "Observation", "sliceName": "VitalSigns", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ] }, { "id": "Observation:vitalsigns.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:vitalsigns.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:vitalsigns.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalsigns.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:vitalsigns.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:vitalsigns.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:vitalsigns.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:vitalsigns.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:vitalsigns.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:vitalsigns.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:vitalsigns.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalsigns.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:vitalsigns.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:vitalsigns.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:vitalsigns.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:vitalsigns.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:vitalsigns.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:vitalsigns.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:vitalsigns.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:vitalsigns.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:vitalsigns.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:vitalsigns.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:vitalsigns.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:vitalsigns.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalsigns.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:vitalsigns.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:vitalsigns.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:vitalsigns.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:vitalsigns.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalsigns.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:vitalsigns.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalsigns.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalsigns.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:vitalsigns.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:vitalsigns.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:vitalsigns.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:vitalsigns.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:vitalsigns.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:vitalsigns", "path": "Observation", "sliceName": "VitalSigns", "min": 0, "max": "*", "constraint": [ { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ] }, { "id": "Observation:vitalsigns.status", "path": "Observation.status", "min": 1, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:vitalsigns.category", "path": "Observation.category", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true }, { "id": "Observation:vitalsigns.code", "path": "Observation.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalsigns.subject", "path": "Observation.subject", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "type": [ { "code": "dateTime" }, { "code": "Period" } ], "condition": [ "vs-1" ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "type": [ { "code": "Quantity" } ], "condition": [ "vs-2" ], "mustSupport": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:vitalsigns.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "type": [ { "code": "decimal" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "mustSupport": true }, { "id": "Observation:vitalsigns.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "condition": [ "vs-2" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:vitalsigns.related", "path": "Observation.related", "mustSupport": true }, { "id": "Observation:vitalsigns.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true }, { "id": "Observation:vitalsigns.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.component", "path": "Observation.component", "constraint": [ { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalsigns.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "type": [ { "code": "Quantity" } ], "condition": [ "vs-3" ], "mustSupport": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:vitalsigns.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "type": [ { "code": "decimal" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "mustSupport": true }, { "id": "Observation:vitalsigns.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "condition": [ "vs-3" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/bodyweight", "resource": { "resourceType": "StructureDefinition", "id": "bodyweight", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'59574-4'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. `Observation.valueQuantity.code` = **'kg', 'g', or '[lb_av]'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/bodyweight", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:bodyweight", "path": "Observation", "sliceName": "BodyWeight", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:bodyweight.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:bodyweight.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:bodyweight.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyweight.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:bodyweight.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:bodyweight.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:bodyweight.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:bodyweight.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:bodyweight.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:bodyweight.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:bodyweight.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodyweight.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodyweight.code.coding:bodyweightcode", "path": "Observation.code.coding", "sliceName": "BodyWeightCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "29463-7", "isSummary": true }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bodyweight.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodyweight.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:bodyweight.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:bodyweight.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:bodyweight.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodyweight.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodyweight.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for Body Weight", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodyweight" } } }, { "id": "Observation:bodyweight.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodyweight.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodyweight.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:bodyweight.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:bodyweight.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:bodyweight.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:bodyweight.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:bodyweight.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyweight.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodyweight.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodyweight.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:bodyweight.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:bodyweight.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyweight.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:bodyweight.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:bodyweight.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyweight.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodyweight.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodyweight.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodyweight.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodyweight.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodyweight.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:bodyweight.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:bodyweight", "path": "Observation", "sliceName": "BodyWeight", "min": 0, "max": "*" }, { "id": "Observation:bodyweight.code", "path": "Observation.code" }, { "id": "Observation:bodyweight.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bodyweight.code.coding:bodyweightcode", "path": "Observation.code.coding", "sliceName": "BodyWeightCode" }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bodyweight.code.coding:bodyweightcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "29463-7" }, { "id": "Observation:bodyweight.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:bodyweight.valueQuantity.code", "path": "Observation.valueQuantity.code", "binding": { "strength": "required", "description": "Common UCUM units for Body Weight", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodyweight" } } } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/resprate", "resource": { "resourceType": "StructureDefinition", "id": "resprate", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'9279-1'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'/min'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/resprate", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:resprate", "path": "Observation", "sliceName": "RespRate", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:resprate.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:resprate.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:resprate.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:resprate.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:resprate.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:resprate.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:resprate.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:resprate.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:resprate.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:resprate.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:resprate.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:resprate.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:resprate.code.coding:respratecode", "path": "Observation.code.coding", "sliceName": "RespRateCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:resprate.code.coding:respratecode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.code.coding:respratecode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.code.coding:respratecode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:resprate.code.coding:respratecode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:resprate.code.coding:respratecode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "9279-1", "isSummary": true }, { "id": "Observation:resprate.code.coding:respratecode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:resprate.code.coding:respratecode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:resprate.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:resprate.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:resprate.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:resprate.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:resprate.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:resprate.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:resprate.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "/min", "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:resprate.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:resprate.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:resprate.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:resprate.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:resprate.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:resprate.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:resprate.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:resprate.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:resprate.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:resprate.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:resprate.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:resprate.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:resprate.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:resprate.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:resprate.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:resprate.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:resprate.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:resprate.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:resprate.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:resprate.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:resprate.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:resprate.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:resprate", "path": "Observation", "sliceName": "RespRate", "min": 0, "max": "*" }, { "id": "Observation:resprate.code", "path": "Observation.code" }, { "id": "Observation:resprate.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:resprate.code.coding:respratecode", "path": "Observation.code.coding", "sliceName": "RespRateCode" }, { "id": "Observation:resprate.code.coding:respratecode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:resprate.code.coding:respratecode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "9279-1" }, { "id": "Observation:resprate.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:resprate.valueQuantity.code", "path": "Observation.valueQuantity.code", "type": [ { "code": "code" } ], "fixedCode": "/min" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/heartrate", "resource": { "resourceType": "StructureDefinition", "id": "heartrate", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'8867-4'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'/min'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/heartrate", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:heartrate", "path": "Observation", "sliceName": "HeartRate", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:heartrate.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:heartrate.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:heartrate.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:heartrate.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:heartrate.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:heartrate.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:heartrate.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:heartrate.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:heartrate.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:heartrate.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:heartrate.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:heartrate.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:heartrate.code.coding:heartratecode", "path": "Observation.code.coding", "sliceName": "HeartRateCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:heartrate.code.coding:heartratecode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.code.coding:heartratecode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.code.coding:heartratecode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:heartrate.code.coding:heartratecode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:heartrate.code.coding:heartratecode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8867-4", "isSummary": true }, { "id": "Observation:heartrate.code.coding:heartratecode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:heartrate.code.coding:heartratecode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:heartrate.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:heartrate.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:heartrate.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:heartrate.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:heartrate.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:heartrate.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:heartrate.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "/min", "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:heartrate.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:heartrate.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:heartrate.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:heartrate.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:heartrate.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:heartrate.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:heartrate.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:heartrate.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:heartrate.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:heartrate.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:heartrate.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:heartrate.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:heartrate.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:heartrate.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:heartrate.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:heartrate.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:heartrate.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:heartrate.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:heartrate.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:heartrate.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:heartrate.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:heartrate.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:heartrate", "path": "Observation", "sliceName": "HeartRate", "min": 0, "max": "*" }, { "id": "Observation:heartrate.code", "path": "Observation.code" }, { "id": "Observation:heartrate.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:heartrate.code.coding:heartratecode", "path": "Observation.code.coding", "sliceName": "HeartRateCode" }, { "id": "Observation:heartrate.code.coding:heartratecode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:heartrate.code.coding:heartratecode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8867-4" }, { "id": "Observation:heartrate.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:heartrate.valueQuantity.code", "path": "Observation.valueQuantity.code", "type": [ { "code": "code" } ], "fixedCode": "/min" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/bodytemp", "resource": { "resourceType": "StructureDefinition", "id": "bodytemp", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'8310-5'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'Cel', or '[degF]'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/bodytemp", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:bodytemp", "path": "Observation", "sliceName": "BodyTemp", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:bodytemp.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:bodytemp.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:bodytemp.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodytemp.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:bodytemp.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:bodytemp.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:bodytemp.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:bodytemp.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:bodytemp.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:bodytemp.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:bodytemp.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodytemp.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodytemp.code.coding:bodytempcode", "path": "Observation.code.coding", "sliceName": "BodyTempCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodytemp.code.coding:bodytempcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.code.coding:bodytempcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.code.coding:bodytempcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bodytemp.code.coding:bodytempcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodytemp.code.coding:bodytempcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8310-5", "isSummary": true }, { "id": "Observation:bodytemp.code.coding:bodytempcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodytemp.code.coding:bodytempcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bodytemp.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodytemp.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:bodytemp.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:bodytemp.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:bodytemp.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodytemp.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodytemp.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for Body Temperature", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodytemp" } } }, { "id": "Observation:bodytemp.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodytemp.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodytemp.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:bodytemp.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:bodytemp.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:bodytemp.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:bodytemp.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:bodytemp.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodytemp.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodytemp.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodytemp.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:bodytemp.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:bodytemp.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodytemp.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:bodytemp.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:bodytemp.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodytemp.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodytemp.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodytemp.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodytemp.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodytemp.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodytemp.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:bodytemp.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:bodytemp", "path": "Observation", "sliceName": "BodyTemp", "min": 0, "max": "*" }, { "id": "Observation:bodytemp.code", "path": "Observation.code" }, { "id": "Observation:bodytemp.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bodytemp.code.coding:bodytempcode", "path": "Observation.code.coding", "sliceName": "BodyTempCode" }, { "id": "Observation:bodytemp.code.coding:bodytempcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bodytemp.code.coding:bodytempcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8310-5" }, { "id": "Observation:bodytemp.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:bodytemp.valueQuantity.code", "path": "Observation.valueQuantity.code", "binding": { "strength": "required", "description": "Common UCUM units for Body Temperature", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodytemp" } } } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/bodyheight", "resource": { "resourceType": "StructureDefinition", "id": "bodyheight", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'8302-2'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'cm', or '[in_i]'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/bodyheight", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:bodyheight", "path": "Observation", "sliceName": "BodyHeight", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:bodyheight.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:bodyheight.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:bodyheight.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyheight.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:bodyheight.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:bodyheight.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:bodyheight.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:bodyheight.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:bodyheight.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:bodyheight.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:bodyheight.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodyheight.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodyheight.code.coding:bodyheightcode", "path": "Observation.code.coding", "sliceName": "BodyHeightCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8302-2", "isSummary": true }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bodyheight.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodyheight.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:bodyheight.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:bodyheight.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:bodyheight.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodyheight.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodyheight.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for Body Length measures such as Body Height and Head Circumference", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodylength" } } }, { "id": "Observation:bodyheight.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodyheight.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodyheight.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:bodyheight.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:bodyheight.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:bodyheight.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:bodyheight.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:bodyheight.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyheight.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodyheight.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodyheight.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:bodyheight.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:bodyheight.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyheight.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:bodyheight.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:bodyheight.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodyheight.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodyheight.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodyheight.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodyheight.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodyheight.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodyheight.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:bodyheight.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:bodyheight", "path": "Observation", "sliceName": "BodyHeight", "min": 0, "max": "*" }, { "id": "Observation:bodyheight.code", "path": "Observation.code" }, { "id": "Observation:bodyheight.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bodyheight.code.coding:bodyheightcode", "path": "Observation.code.coding", "sliceName": "BodyHeightCode" }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bodyheight.code.coding:bodyheightcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8302-2" }, { "id": "Observation:bodyheight.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:bodyheight.valueQuantity.code", "path": "Observation.valueQuantity.code", "binding": { "strength": "required", "description": "Common UCUM units for Body Length measures such as Body Height and Head Circumference", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodylength" } } } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/bodylength", "resource": { "resourceType": "StructureDefinition", "id": "bodylength", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'8306-3'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'cm', or '[in_i]'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/bodylength", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:bodylength", "path": "Observation", "sliceName": "BodyLength", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:bodylength.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:bodylength.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:bodylength.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodylength.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:bodylength.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:bodylength.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:bodylength.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:bodylength.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:bodylength.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:bodylength.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:bodylength.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodylength.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodylength.code.coding:bodylengthcode", "path": "Observation.code.coding", "sliceName": "BodyLengthCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bodylength.code.coding:bodylengthcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.code.coding:bodylengthcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.code.coding:bodylengthcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bodylength.code.coding:bodylengthcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodylength.code.coding:bodylengthcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8306-3", "isSummary": true }, { "id": "Observation:bodylength.code.coding:bodylengthcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodylength.code.coding:bodylengthcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bodylength.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bodylength.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:bodylength.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:bodylength.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:bodylength.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodylength.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodylength.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for Body Length measures such as Body Height and Head Circumference", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodylength" } } }, { "id": "Observation:bodylength.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodylength.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodylength.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:bodylength.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:bodylength.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:bodylength.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:bodylength.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:bodylength.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodylength.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodylength.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bodylength.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:bodylength.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:bodylength.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodylength.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:bodylength.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:bodylength.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bodylength.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bodylength.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bodylength.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodylength.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodylength.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bodylength.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodylength.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bodylength.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bodylength.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:bodylength.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:bodylength", "path": "Observation", "sliceName": "BodyLength", "min": 0, "max": "*" }, { "id": "Observation:bodylength.code", "path": "Observation.code" }, { "id": "Observation:bodylength.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bodylength.code.coding:bodylengthcode", "path": "Observation.code.coding", "sliceName": "BodyLengthCode" }, { "id": "Observation:bodylength.code.coding:bodylengthcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bodylength.code.coding:bodylengthcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8306-3" }, { "id": "Observation:bodylength.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:bodylength.valueQuantity.code", "path": "Observation.valueQuantity.code", "binding": { "strength": "required", "description": "Common UCUM units for Body Length measures such as Body Height and Head Circumference", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodylength" } } } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/headcircum", "resource": { "resourceType": "StructureDefinition", "id": "headcircum", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'8287-5'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'cm', or '[in_i]'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/headcircum", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:headcircum", "path": "Observation", "sliceName": "HeadCircum", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:headcircum.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:headcircum.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:headcircum.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:headcircum.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:headcircum.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:headcircum.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:headcircum.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:headcircum.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:headcircum.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:headcircum.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:headcircum.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:headcircum.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:headcircum.code.coding:headcircumcode", "path": "Observation.code.coding", "sliceName": "HeadCircumCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:headcircum.code.coding:headcircumcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.code.coding:headcircumcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.code.coding:headcircumcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:headcircum.code.coding:headcircumcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:headcircum.code.coding:headcircumcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8287-5", "isSummary": true }, { "id": "Observation:headcircum.code.coding:headcircumcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:headcircum.code.coding:headcircumcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:headcircum.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:headcircum.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:headcircum.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:headcircum.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:headcircum.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:headcircum.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:headcircum.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for Body Length measures such as Body Height and Head Circumference", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodylength" } } }, { "id": "Observation:headcircum.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:headcircum.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:headcircum.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:headcircum.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:headcircum.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:headcircum.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:headcircum.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:headcircum.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:headcircum.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:headcircum.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:headcircum.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:headcircum.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:headcircum.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:headcircum.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:headcircum.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:headcircum.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:headcircum.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:headcircum.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:headcircum.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:headcircum.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:headcircum.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:headcircum.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:headcircum.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:headcircum", "path": "Observation", "sliceName": "HeadCircum", "min": 0, "max": "*" }, { "id": "Observation:headcircum.code", "path": "Observation.code" }, { "id": "Observation:headcircum.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:headcircum.code.coding:headcircumcode", "path": "Observation.code.coding", "sliceName": "HeadCircumCode" }, { "id": "Observation:headcircum.code.coding:headcircumcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:headcircum.code.coding:headcircumcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8287-5" }, { "id": "Observation:headcircum.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:headcircum.valueQuantity.code", "path": "Observation.valueQuantity.code", "binding": { "strength": "required", "description": "Common UCUM units for Body Length measures such as Body Height and Head Circumference", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-bodylength" } } } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/oxygensat", "resource": { "resourceType": "StructureDefinition", "id": "oxygensat", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "\"####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'59408-5'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'%'**\r\"" } ], "url": "http://hl7.org/fhir/StructureDefinition/oxygensat", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:oxygensat", "path": "Observation", "sliceName": "OxygenSat", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:oxygensat.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:oxygensat.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:oxygensat.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:oxygensat.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:oxygensat.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:oxygensat.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:oxygensat.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:oxygensat.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:oxygensat.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:oxygensat.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:oxygensat.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:oxygensat.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:oxygensat.code.coding:oxygensatcode", "path": "Observation.code.coding", "sliceName": "OxygenSatCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "59408-5", "isSummary": true }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:oxygensat.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:oxygensat.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:oxygensat.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:oxygensat.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:oxygensat.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:oxygensat.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:oxygensat.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "%", "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:oxygensat.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:oxygensat.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:oxygensat.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:oxygensat.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:oxygensat.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:oxygensat.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:oxygensat.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:oxygensat.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:oxygensat.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:oxygensat.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:oxygensat.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:oxygensat.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:oxygensat.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:oxygensat.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:oxygensat.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:oxygensat.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:oxygensat.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:oxygensat.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:oxygensat.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:oxygensat.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:oxygensat.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:oxygensat.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:oxygensat", "path": "Observation", "sliceName": "OxygenSat", "min": 0, "max": "*" }, { "id": "Observation:oxygensat.code", "path": "Observation.code" }, { "id": "Observation:oxygensat.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:oxygensat.code.coding:oxygensatcode", "path": "Observation.code.coding", "sliceName": "OxygenSatCode" }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:oxygensat.code.coding:oxygensatcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "59408-5" }, { "id": "Observation:oxygensat.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:oxygensat.valueQuantity.code", "path": "Observation.valueQuantity.code", "type": [ { "code": "code" } ], "fixedCode": "%" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/bmi", "resource": { "resourceType": "StructureDefinition", "id": "bmi", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'39156-5'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'kg/m2'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/bmi", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:bmi", "path": "Observation", "sliceName": "BMI", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:bmi.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:bmi.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:bmi.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bmi.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:bmi.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:bmi.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:bmi.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:bmi.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:bmi.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:bmi.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:bmi.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bmi.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bmi.code.coding:bmicode", "path": "Observation.code.coding", "sliceName": "BMICode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bmi.code.coding:bmicode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.code.coding:bmicode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.code.coding:bmicode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bmi.code.coding:bmicode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bmi.code.coding:bmicode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "39156-5", "isSummary": true }, { "id": "Observation:bmi.code.coding:bmicode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bmi.code.coding:bmicode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bmi.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bmi.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:bmi.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:bmi.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:bmi.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bmi.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bmi.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "kg/m2", "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bmi.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bmi.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:bmi.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:bmi.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:bmi.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:bmi.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:bmi.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bmi.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bmi.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bmi.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:bmi.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:bmi.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bmi.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:bmi.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:bmi.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bmi.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bmi.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bmi.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bmi.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bmi.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bmi.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:bmi.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:bmi", "path": "Observation", "sliceName": "BMI", "min": 0, "max": "*" }, { "id": "Observation:bmi.code", "path": "Observation.code" }, { "id": "Observation:bmi.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bmi.code.coding:bmicode", "path": "Observation.code.coding", "sliceName": "BMICode" }, { "id": "Observation:bmi.code.coding:bmicode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bmi.code.coding:bmicode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "39156-5" }, { "id": "Observation:bmi.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:bmi.valueQuantity.code", "path": "Observation.valueQuantity.code", "type": [ { "code": "code" } ], "fixedCode": "kg/m2" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/mbp", "resource": { "resourceType": "StructureDefinition", "id": "mbp", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **8478-0'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. a fixed`Observation.valueQuantity.code` = **'mm[Hg]'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/mbp", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:mbp", "path": "Observation", "sliceName": "MBP", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:mbp.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:mbp.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:mbp.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:mbp.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:mbp.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:mbp.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:mbp.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:mbp.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:mbp.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:mbp.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:mbp.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:mbp.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:mbp.code.coding:mbpcode", "path": "Observation.code.coding", "sliceName": "MBPCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:mbp.code.coding:mbpcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.code.coding:mbpcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.code.coding:mbpcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:mbp.code.coding:mbpcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:mbp.code.coding:mbpcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8478-0", "isSummary": true }, { "id": "Observation:mbp.code.coding:mbpcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:mbp.code.coding:mbpcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:mbp.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:mbp.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:mbp.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:mbp.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:mbp.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:mbp.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:mbp.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]", "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:mbp.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:mbp.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:mbp.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:mbp.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:mbp.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:mbp.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:mbp.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:mbp.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:mbp.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:mbp.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:mbp.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:mbp.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:mbp.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:mbp.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:mbp.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:mbp.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:mbp.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:mbp.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:mbp.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:mbp.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:mbp.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:mbp.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:mbp", "path": "Observation", "sliceName": "MBP", "min": 0, "max": "*" }, { "id": "Observation:mbp.code", "path": "Observation.code" }, { "id": "Observation:mbp.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:mbp.code.coding:mbpcode", "path": "Observation.code.coding", "sliceName": "MBPCode" }, { "id": "Observation:mbp.code.coding:mbpcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:mbp.code.coding:mbpcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8478-0" }, { "id": "Observation:mbp.valueQuantity", "path": "Observation.valueQuantity" }, { "id": "Observation:mbp.valueQuantity.code", "path": "Observation.valueQuantity.code", "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/bp", "resource": { "resourceType": "StructureDefinition", "id": "bp", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\r\r1. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\r - a fixed `Observation.code.coding.code`= **'55284-4'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r2. One `Observation.component.code` which must have\r - a fixed `Observation.component.code.coding.system`=**'htp ://loinc.org'**\r - fixed `Observation.component.code.coding.code`= **'8480-6'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r3. One `Observation.component.code` which must have\r - a fixed `Observation.component.code.coding.system`=**'htp ://loinc.org'**\r - fixed `Observation.component.code.coding.code`= **'8462-4'**\r - Other additional codes are allowed - e.g. more specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r4. fixed`Observation.component.valueQuantity.code` = **'mm[Hg]'**" } ], "url": "http://hl7.org/fhir/StructureDefinition/bp", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:bp", "path": "Observation", "sliceName": "BP", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:bp.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:bp.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:bp.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bp.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:bp.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:bp.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:bp.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:bp.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:bp.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:bp.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:bp.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bp.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bp.code.coding:bpcode", "path": "Observation.code.coding", "sliceName": "BPCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bp.code.coding:bpcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.code.coding:bpcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.code.coding:bpcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bp.code.coding:bpcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.code.coding:bpcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "55284-4", "isSummary": true }, { "id": "Observation:bp.code.coding:bpcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.code.coding:bpcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bp.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:bp.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:bp.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:bp.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bp.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bp.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bp.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bp.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:bp.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:bp.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:bp.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:bp.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:bp.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bp.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bp.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:bp.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:bp.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:bp.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bp.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:bp.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:bp.component", "path": "Observation.component", "slicing": { "discriminator": [ "code.coding.code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns.component" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:systolicbp", "path": "Observation.component", "sliceName": "SystolicBP", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns.component" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:systolicbp.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:systolicbp.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:systolicbp.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bp.component:systolicbp.code.id", "path": "Observation.component.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:systolicbp.code.extension", "path": "Observation.component.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:systolicbp.code.coding", "path": "Observation.component.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode", "path": "Observation.component.code.coding", "sliceName": "SBPCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.id", "path": "Observation.component.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.extension", "path": "Observation.component.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.system", "path": "Observation.component.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.version", "path": "Observation.component.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.code", "path": "Observation.component.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8480-6", "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.display", "path": "Observation.component.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.userSelected", "path": "Observation.component.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.code.text", "path": "Observation.component.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bp.component:systolicbp.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:systolicbp.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:systolicbp.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:systolicbp.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bp.component:systolicbp.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:systolicbp.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:systolicbp.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]", "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:systolicbp.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bp.component:systolicbp.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bp.component:systolicbp.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:bp.referenceRange" }, { "id": "Observation:bp.component:diastolicbp", "path": "Observation.component", "sliceName": "DiastolicBP", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns.component" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:diastolicbp.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:diastolicbp.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:bp.component:diastolicbp.code.id", "path": "Observation.component.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:diastolicbp.code.extension", "path": "Observation.component.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:diastolicbp.code.coding", "path": "Observation.component.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode", "path": "Observation.component.code.coding", "sliceName": "DBPCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.id", "path": "Observation.component.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.extension", "path": "Observation.component.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.system", "path": "Observation.component.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.version", "path": "Observation.component.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.code", "path": "Observation.component.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8462-4", "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.display", "path": "Observation.component.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.userSelected", "path": "Observation.component.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.code.text", "path": "Observation.component.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]", "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:bp.component:diastolicbp.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:bp.component:diastolicbp.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:bp.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:bp", "path": "Observation", "sliceName": "BP", "min": 0, "max": "*" }, { "id": "Observation:bp.value[x]", "path": "Observation.value[x]", "min": 0, "max": "0" }, { "id": "Observation:bp.code", "path": "Observation.code" }, { "id": "Observation:bp.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bp.code.coding:bpcode", "path": "Observation.code.coding", "sliceName": "BPCode" }, { "id": "Observation:bp.code.coding:bpcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bp.code.coding:bpcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "55284-4" }, { "id": "Observation:bp.component", "path": "Observation.component", "slicing": { "discriminator": [ "code.coding.code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bp.component:systolicbp", "path": "Observation.component", "sliceName": "SystolicBP" }, { "id": "Observation:bp.component:systolicbp.code", "path": "Observation.component.code" }, { "id": "Observation:bp.component:systolicbp.code.coding", "path": "Observation.component.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode", "path": "Observation.component.code.coding", "sliceName": "SBPCode" }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.system", "path": "Observation.component.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bp.component:systolicbp.code.coding:sbpcode.code", "path": "Observation.component.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8480-6" }, { "id": "Observation:bp.component:systolicbp.valueQuantity", "path": "Observation.component.valueQuantity", "type": [ { "code": "Quantity" } ] }, { "id": "Observation:bp.component:systolicbp.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]" }, { "id": "Observation:bp.component:diastolicbp", "path": "Observation.component", "sliceName": "DiastolicBP" }, { "id": "Observation:bp.component:diastolicbp.code", "path": "Observation.component.code" }, { "id": "Observation:bp.component:diastolicbp.code.coding", "path": "Observation.component.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode", "path": "Observation.component.code.coding", "sliceName": "DBPCode" }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.system", "path": "Observation.component.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:bp.component:diastolicbp.code.coding:dbpcode.code", "path": "Observation.component.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8462-4" }, { "id": "Observation:bp.component:diastolicbp.valueQuantity", "path": "Observation.component.valueQuantity", "type": [ { "code": "Quantity" } ] }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/vitalspanel", "resource": { "resourceType": "StructureDefinition", "id": "vitalspanel", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "####Complete Summary of the Mandatory Requirements\n####Complete Summary of the Mandatory Requirements\n\n1. One code in `Observation.code` which must have\n - a fixed `Observation.code.coding.system`=**'http ://loinc.org'**\n - a fixed `Observation.code.coding.code`= **'8716-3'**\n - Other additional codes are allowed - e.g. more specific LOINC\n Codes, SNOMED CT concepts, system specific codes. All codes\n SHALL have an system value\n1. No value in `Observation.value[x]`\n1. At Least one Vitals Sign Observation reference in `Observation.related`" } ], "url": "http://hl7.org/fhir/StructureDefinition/vitalspanel", "name": "Vital Signs Profile", "title": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:vitalspanel", "path": "Observation", "sliceName": "VitalsPanel", "min": 0, "max": "*", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" }, { "key": "vs-2", "severity": "error", "human": "If there is no component or related element then either a value[x] or a data absent reason must be present", "expression": "component.exists() or value.exists() or dataAbsentReason.exists() or related.exists()", "xpath": "exists(f:component) or exists(f:related) or exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)", "source": "Observation:vitalsigns" } ] }, { "id": "Observation:vitalspanel.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:vitalspanel.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:vitalspanel.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalspanel.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:vitalspanel.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:vitalspanel.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:vitalspanel.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:vitalspanel.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:vitalspanel.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isModifier": true, "isSummary": true, "binding": { "strength": "required", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:vitalspanel.category", "path": "Observation.category", "min": 1, "max": "1", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "patternCodeableConcept": { "coding": [ { "system": "http://hl7.org/fhir/observation-category", "code": "vital-signs" } ] }, "mustSupport": true, "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:vitalspanel.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalspanel.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode", "path": "Observation.code.coding", "sliceName": "BodyWeightCode", "min": 0, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.system", "path": "Observation.code.coding.system", "min": 0, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org", "isSummary": true }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.version", "path": "Observation.code.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.code", "path": "Observation.code.coding.code", "min": 0, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "8716-3", "isSummary": true }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.userSelected", "path": "Observation.code.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:vitalspanel.code.text", "path": "Observation.code.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:vitalspanel.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:vitalspanel.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "constraint": [ { "key": "vs-1", "severity": "error", "human": "Datetime must be at least to day.", "expression": "length() >= 8", "xpath": "f:matches(effectiveDateTime,/\\d{4}-[01]\\d-[0-3]\\dT[0-2]\\d:[0-5]\\d([+-][0-2]\\d:[0-5]\\d|Z)/)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:vitalspanel.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:vitalspanel.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:vitalspanel.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:vitalspanel.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:vitalspanel.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:vitalspanel.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:vitalspanel.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:vitalspanel.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:vitalspanel.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:vitalspanel.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))" } ] }, { "id": "Observation:vitalspanel.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalspanel.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:vitalspanel.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:vitalspanel.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:vitalspanel.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:vitalspanel.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.related", "path": "Observation.related", "min": 1, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalspanel.related.type", "path": "Observation.related.type", "min": 1, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "has-member", "mustSupport": true, "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:vitalspanel.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/vitalsigns" } ], "mustSupport": true }, { "id": "Observation:vitalspanel.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "vs-3", "severity": "error", "human": "If there is no a value a data absent reason must be present", "expression": "value.exists() or dataAbsentReason.exists()", "xpath": "exists(f:*[starts-with(local-name(.), 'value)]) or exists(f:dataAbsentReason)" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:vitalspanel.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalspanel.component.valueQuantity", "path": "Observation.component.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Common UCUM units for recording Vital Signs", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ucum-vitals-common" } } }, { "id": "Observation:vitalspanel.component.valueQuantity.id", "path": "Observation.component.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalspanel.component.valueQuantity.extension", "path": "Observation.component.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalspanel.component.valueQuantity.value", "path": "Observation.component.valueQuantity.value", "min": 1, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.component.valueQuantity.comparator", "path": "Observation.component.valueQuantity.comparator", "min": 0, "max": "1", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:vitalspanel.component.valueQuantity.unit", "path": "Observation.component.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.component.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.component.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalspanel.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "mustSupport": true, "binding": { "strength": "extensible", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:vitalspanel.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:vitalspanel.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:vitalspanel.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:vitalspanel", "path": "Observation", "sliceName": "VitalsPanel", "min": 0, "max": "*" }, { "id": "Observation:vitalspanel.value[x]", "path": "Observation.value[x]", "min": 0, "max": "0" }, { "id": "Observation:vitalspanel.code", "path": "Observation.code" }, { "id": "Observation:vitalspanel.code.coding", "path": "Observation.code.coding", "slicing": { "discriminator": [ "code" ], "ordered": false, "rules": "open" } }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode", "path": "Observation.code.coding", "sliceName": "BodyWeightCode" }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.system", "path": "Observation.code.coding.system", "type": [ { "code": "uri" } ], "fixedUri": "http://loinc.org" }, { "id": "Observation:vitalspanel.code.coding:bodyweightcode.code", "path": "Observation.code.coding.code", "type": [ { "code": "code" } ], "fixedCode": "8716-3" }, { "id": "Observation:vitalspanel.related", "path": "Observation.related", "min": 1, "max": "*" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/lipidprofile", "resource": { "resourceType": "StructureDefinition", "id": "lipidprofile", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-summary", "valueMarkdown": "This is a test summary [lipids](observation.html)" }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "oo" } ], "url": "http://hl7.org/fhir/StructureDefinition/lipidprofile", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "DiagnosticReport", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticReport:lipidprofile", "path": "DiagnosticReport", "sliceName": "LipidProfile", "min": 1, "max": "1", "base": { "path": "DiagnosticReport", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" } ] }, { "id": "DiagnosticReport:lipidprofile.id", "path": "DiagnosticReport.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.meta", "path": "DiagnosticReport.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.implicitRules", "path": "DiagnosticReport.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.language", "path": "DiagnosticReport.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "DiagnosticReport:lipidprofile.text", "path": "DiagnosticReport.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DiagnosticReport:lipidprofile.contained", "path": "DiagnosticReport.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DiagnosticReport:lipidprofile.extension", "path": "DiagnosticReport.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:lipidprofile.modifierExtension", "path": "DiagnosticReport.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DiagnosticReport:lipidprofile.identifier", "path": "DiagnosticReport.identifier", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.status", "path": "DiagnosticReport.status", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The status of the diagnostic report as a whole.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-report-status" } } }, { "id": "DiagnosticReport:lipidprofile.category", "path": "DiagnosticReport.category", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.category", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes for diagnostic service sections.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections" } } }, { "id": "DiagnosticReport:lipidprofile.code", "path": "DiagnosticReport.code", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "57698-3", "display": "Lipid panel with direct LDL - Serum or Plasma" } ] }, "isSummary": true, "binding": { "strength": "preferred", "description": "Codes that describe Diagnostic Reports.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/report-codes" } } }, { "id": "DiagnosticReport:lipidprofile.subject", "path": "DiagnosticReport.subject", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.encounter", "path": "DiagnosticReport.encounter", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.effective[x]", "path": "DiagnosticReport.effective[x]", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.issued", "path": "DiagnosticReport.issued", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.performer", "path": "DiagnosticReport.performer", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.request", "path": "DiagnosticReport.request", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.request", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest" } ] }, { "id": "DiagnosticReport:lipidprofile.specimen", "path": "DiagnosticReport.specimen", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.specimen", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "DiagnosticReport:lipidprofile.result", "path": "DiagnosticReport.result", "slicing": { "discriminator": [ "reference.code" ], "ordered": true, "rules": "closed" }, "min": 0, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" } ] }, { "id": "DiagnosticReport:lipidprofile.result:cholesterol", "path": "DiagnosticReport.result", "sliceName": "Cholesterol", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/cholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:triglyceride", "path": "DiagnosticReport.result", "sliceName": "Triglyceride", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/triglyceride" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:hdlcholesterol", "path": "DiagnosticReport.result", "sliceName": "HDLCholesterol", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/hdlcholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:ldlcholesterol", "path": "DiagnosticReport.result", "sliceName": "LDLCholesterol", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ldlcholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.imagingStudy", "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImagingStudy" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImagingManifest" } ] }, { "id": "DiagnosticReport:lipidprofile.image", "path": "DiagnosticReport.image", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.image", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.image.id", "path": "DiagnosticReport.image.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:lipidprofile.image.extension", "path": "DiagnosticReport.image.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:lipidprofile.image.modifierExtension", "path": "DiagnosticReport.image.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.image.comment", "path": "DiagnosticReport.image.comment", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.image.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:lipidprofile.image.link", "path": "DiagnosticReport.image.link", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.image.link", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Media" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.conclusion", "path": "DiagnosticReport.conclusion", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.conclusion", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.codedDiagnosis", "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "0", "base": { "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Diagnoses codes provided as adjuncts to the report.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/clinical-findings" } } }, { "id": "DiagnosticReport:lipidprofile.presentedForm", "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*" }, "type": [ { "code": "Attachment" } ] } ] }, "differential": { "element": [ { "id": "DiagnosticReport:lipidprofile", "path": "DiagnosticReport", "sliceName": "LipidProfile", "min": 1, "max": "1" }, { "id": "DiagnosticReport:lipidprofile.code", "path": "DiagnosticReport.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "57698-3", "display": "Lipid panel with direct LDL - Serum or Plasma" } ] } }, { "id": "DiagnosticReport:lipidprofile.result", "path": "DiagnosticReport.result", "slicing": { "discriminator": [ "reference.code" ], "ordered": true, "rules": "closed" }, "max": "1" }, { "id": "DiagnosticReport:lipidprofile.result:cholesterol", "path": "DiagnosticReport.result", "sliceName": "Cholesterol", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/cholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:triglyceride", "path": "DiagnosticReport.result", "sliceName": "Triglyceride", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/triglyceride" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:hdlcholesterol", "path": "DiagnosticReport.result", "sliceName": "HDLCholesterol", "min": 1, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/hdlcholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:ldlcholesterol", "path": "DiagnosticReport.result", "sliceName": "LDLCholesterol", "min": 0, "max": "1", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ldlcholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.conclusion", "path": "DiagnosticReport.conclusion", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.codedDiagnosis", "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "0", "type": [ { "code": "CodeableConcept" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/cholesterol", "resource": { "resourceType": "StructureDefinition", "id": "cholesterol", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "oo" } ], "url": "http://hl7.org/fhir/StructureDefinition/cholesterol", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:cholesterol", "path": "Observation", "sliceName": "Cholesterol", "min": 1, "max": "1", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" } ] }, { "id": "Observation:cholesterol.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:cholesterol.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:cholesterol.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:cholesterol.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:cholesterol.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:cholesterol.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:cholesterol.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:cholesterol.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:cholesterol.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:cholesterol.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Codes providing the status of an observation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:cholesterol.category", "path": "Observation.category", "min": 0, "max": "*", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:cholesterol.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "35200-5", "display": "Cholesterol" } ] }, "mustSupport": true, "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:cholesterol.subject", "path": "Observation.subject", "min": 0, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "Observation:cholesterol.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:cholesterol.effective[x]", "path": "Observation.effective[x]", "min": 0, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:cholesterol.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:cholesterol.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:cholesterol.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:cholesterol.valueQuantity.id", "path": "Observation.valueQuantity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:cholesterol.valueQuantity.extension", "path": "Observation.valueQuantity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:cholesterol.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:cholesterol.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "0", "base": { "path": "Quantity.comparator", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "meaningWhenMissing": "If there is no comparator, then there is no modification of the value", "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "How the Quantity should be understood and represented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/quantity-comparator" } } }, { "id": "Observation:cholesterol.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "fixedString": "mmol/L", "mustSupport": true, "isSummary": true }, { "id": "Observation:cholesterol.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "condition": [ "qty-3" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:cholesterol.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "mmol/L", "mustSupport": true, "isSummary": true }, { "id": "Observation:cholesterol.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:cholesterol.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:cholesterol.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:cholesterol.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:cholesterol.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:cholesterol.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:cholesterol.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:cholesterol.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", "source": "Observation.referenceRange" } ], "mustSupport": true }, { "id": "Observation:cholesterol.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:cholesterol.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:cholesterol.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:cholesterol.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:cholesterol.referenceRange.high", "path": "Observation.referenceRange.high", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "fixedQuantity": { "value": 4.5 }, "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "qty-3", "severity": "error", "human": "If a code for the unit is present, the system SHALL also be present", "expression": "code.empty() or system.exists()", "xpath": "not(exists(f:code)) or exists(f:system)", "source": "Quantity" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))", "source": "Quantity:simplequantity" } ] }, { "id": "Observation:cholesterol.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:cholesterol.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:cholesterol.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:cholesterol.related", "path": "Observation.related", "min": 0, "max": "0", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:cholesterol.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:cholesterol.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:cholesterol.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:cholesterol.related.type", "path": "Observation.related.type", "min": 0, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:cholesterol.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:cholesterol.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:cholesterol.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:cholesterol.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:cholesterol.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:cholesterol.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:cholesterol.component.value[x]", "path": "Observation.component.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:cholesterol.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:cholesterol.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:cholesterol.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:cholesterol.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:cholesterol", "path": "Observation", "sliceName": "Cholesterol", "min": 1, "max": "1" }, { "id": "Observation:cholesterol.code", "path": "Observation.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "35200-5", "display": "Cholesterol" } ] }, "mustSupport": true }, { "id": "Observation:cholesterol.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "type": [ { "code": "Quantity" } ], "mustSupport": true }, { "id": "Observation:cholesterol.valueQuantity.value", "path": "Observation.valueQuantity.value", "min": 0, "max": "1", "type": [ { "code": "decimal" } ], "mustSupport": true }, { "id": "Observation:cholesterol.valueQuantity.comparator", "path": "Observation.valueQuantity.comparator", "min": 0, "max": "0", "type": [ { "code": "code" } ] }, { "id": "Observation:cholesterol.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "min": 1, "max": "1", "type": [ { "code": "string" } ], "fixedString": "mmol/L", "mustSupport": true }, { "id": "Observation:cholesterol.valueQuantity.system", "path": "Observation.valueQuantity.system", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "mustSupport": true }, { "id": "Observation:cholesterol.valueQuantity.code", "path": "Observation.valueQuantity.code", "min": 1, "max": "1", "type": [ { "code": "code" } ], "fixedCode": "mmol/L", "mustSupport": true }, { "id": "Observation:cholesterol.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:cholesterol.comment", "path": "Observation.comment", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:cholesterol.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:cholesterol.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "0" }, { "id": "Observation:cholesterol.referenceRange.high", "path": "Observation.referenceRange.high", "min": 1, "max": "1", "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "fixedQuantity": { "value": 4.5 } }, { "id": "Observation:cholesterol.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "type": [ { "code": "CodeableConcept" } ] }, { "id": "Observation:cholesterol.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "type": [ { "code": "Range" } ] }, { "id": "Observation:cholesterol.related", "path": "Observation.related", "min": 0, "max": "0" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/triglyceride", "resource": { "resourceType": "StructureDefinition", "id": "triglyceride", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "oo" } ], "url": "http://hl7.org/fhir/StructureDefinition/triglyceride", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:triglyceride", "path": "Observation", "sliceName": "Triglyceride", "min": 1, "max": "1", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" } ] }, { "id": "Observation:triglyceride.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:triglyceride.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:triglyceride.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:triglyceride.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:triglyceride.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:triglyceride.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:triglyceride.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:triglyceride.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:triglyceride.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:triglyceride.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Codes providing the status of an observation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:triglyceride.category", "path": "Observation.category", "min": 0, "max": "*", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:triglyceride.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "35217-9", "display": "Triglyceride" } ] }, "mustSupport": true, "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:triglyceride.subject", "path": "Observation.subject", "min": 0, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "Observation:triglyceride.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:triglyceride.effective[x]", "path": "Observation.effective[x]", "min": 0, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:triglyceride.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:triglyceride.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:triglyceride.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:triglyceride.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:triglyceride.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:triglyceride.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:triglyceride.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:triglyceride.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:triglyceride.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:triglyceride.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:triglyceride.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", "source": "Observation.referenceRange" } ], "mustSupport": true }, { "id": "Observation:triglyceride.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:triglyceride.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:triglyceride.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:triglyceride.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:triglyceride.referenceRange.high", "path": "Observation.referenceRange.high", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:triglyceride.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:triglyceride.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:triglyceride.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:triglyceride.related", "path": "Observation.related", "min": 0, "max": "0", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:triglyceride.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:triglyceride.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:triglyceride.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:triglyceride.related.type", "path": "Observation.related.type", "min": 0, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:triglyceride.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:triglyceride.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:triglyceride.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:triglyceride.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:triglyceride.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:triglyceride.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:triglyceride.component.value[x]", "path": "Observation.component.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:triglyceride.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:triglyceride.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:triglyceride.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:triglyceride.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:triglyceride", "path": "Observation", "sliceName": "Triglyceride", "min": 1, "max": "1" }, { "id": "Observation:triglyceride.code", "path": "Observation.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "35217-9", "display": "Triglyceride" } ] }, "mustSupport": true }, { "id": "Observation:triglyceride.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "type": [ { "code": "Quantity" } ], "mustSupport": true }, { "id": "Observation:triglyceride.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:triglyceride.comment", "path": "Observation.comment", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:triglyceride.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:triglyceride.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "0" }, { "id": "Observation:triglyceride.referenceRange.high", "path": "Observation.referenceRange.high", "min": 1, "max": "1" }, { "id": "Observation:triglyceride.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "type": [ { "code": "CodeableConcept" } ] }, { "id": "Observation:triglyceride.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "type": [ { "code": "Range" } ] }, { "id": "Observation:triglyceride.related", "path": "Observation.related", "min": 0, "max": "0" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/hdlcholesterol", "resource": { "resourceType": "StructureDefinition", "id": "hdlcholesterol", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "oo" } ], "url": "http://hl7.org/fhir/StructureDefinition/hdlcholesterol", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:hdlcholesterol", "path": "Observation", "sliceName": "HDLCholesterol", "min": 1, "max": "1", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" } ] }, { "id": "Observation:hdlcholesterol.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:hdlcholesterol.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:hdlcholesterol.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:hdlcholesterol.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:hdlcholesterol.extension", "path": "Observation.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:hdlcholesterol.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:hdlcholesterol.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:hdlcholesterol.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Codes providing the status of an observation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:hdlcholesterol.category", "path": "Observation.category", "min": 0, "max": "*", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:hdlcholesterol.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "2085-9", "display": "HDL Cholesterol" } ] }, "mustSupport": true, "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:hdlcholesterol.subject", "path": "Observation.subject", "min": 0, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:hdlcholesterol.effective[x]", "path": "Observation.effective[x]", "min": 0, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:hdlcholesterol.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:hdlcholesterol.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:hdlcholesterol.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:hdlcholesterol.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:hdlcholesterol.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:hdlcholesterol.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:hdlcholesterol.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:hdlcholesterol.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", "source": "Observation.referenceRange" } ], "mustSupport": true }, { "id": "Observation:hdlcholesterol.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:hdlcholesterol.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:hdlcholesterol.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:hdlcholesterol.referenceRange.low", "path": "Observation.referenceRange.low", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "fixedQuantity": { "value": 1.5 }, "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "qty-3", "severity": "error", "human": "If a code for the unit is present, the system SHALL also be present", "expression": "code.empty() or system.exists()", "xpath": "not(exists(f:code)) or exists(f:system)", "source": "Quantity" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))", "source": "Quantity:simplequantity" } ] }, { "id": "Observation:hdlcholesterol.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:hdlcholesterol.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:hdlcholesterol.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:hdlcholesterol.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:hdlcholesterol.related", "path": "Observation.related", "min": 0, "max": "0", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:hdlcholesterol.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:hdlcholesterol.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:hdlcholesterol.related.type", "path": "Observation.related.type", "min": 0, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:hdlcholesterol.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:hdlcholesterol.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:hdlcholesterol.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:hdlcholesterol.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:hdlcholesterol.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:hdlcholesterol.component.value[x]", "path": "Observation.component.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:hdlcholesterol.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:hdlcholesterol.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:hdlcholesterol.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:hdlcholesterol", "path": "Observation", "sliceName": "HDLCholesterol", "min": 1, "max": "1" }, { "id": "Observation:hdlcholesterol.code", "path": "Observation.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "fixedCodeableConcept": { "coding": [ { "system": "http://loinc.org", "code": "2085-9", "display": "HDL Cholesterol" } ] }, "mustSupport": true }, { "id": "Observation:hdlcholesterol.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "type": [ { "code": "Quantity" } ], "mustSupport": true }, { "id": "Observation:hdlcholesterol.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:hdlcholesterol.comment", "path": "Observation.comment", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:hdlcholesterol.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:hdlcholesterol.referenceRange.low", "path": "Observation.referenceRange.low", "min": 1, "max": "1", "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "fixedQuantity": { "value": 1.5 } }, { "id": "Observation:hdlcholesterol.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "0" }, { "id": "Observation:hdlcholesterol.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "type": [ { "code": "CodeableConcept" } ] }, { "id": "Observation:hdlcholesterol.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "type": [ { "code": "Range" } ] }, { "id": "Observation:hdlcholesterol.related", "path": "Observation.related", "min": 0, "max": "0" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/ldlcholesterol", "resource": { "resourceType": "StructureDefinition", "id": "ldlcholesterol", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-fmm", "valueInteger": 1 }, { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg", "valueCode": "oo" } ], "url": "http://hl7.org/fhir/StructureDefinition/ldlcholesterol", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:ldlcholesterol", "path": "Observation", "sliceName": "LDLCholesterol", "min": 1, "max": "1", "base": { "path": "Observation", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "obs-7", "severity": "error", "human": "If code is the same as a component code then the value element associated with the code SHALL NOT be present", "expression": "value.empty() or code!=component.code", "xpath": "not(exists(f:value)) or not(count(for $coding in f:code/f:coding return parent::*/f:component/f:code/f:coding[f:code/@value=$coding/f:code/@value and f:system/@value=$coding/f:system/@value])=0)", "source": "Observation" }, { "key": "obs-6", "severity": "error", "human": "dataAbsentReason SHALL only be present if Observation.value[x] is not present", "expression": "dataAbsentReason.empty() or value.empty()", "xpath": "not(exists(f:dataAbsentReason)) or (not(exists(*[starts-with(local-name(.), 'value')])))", "source": "Observation" } ] }, { "id": "Observation:ldlcholesterol.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:ldlcholesterol.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Observation:ldlcholesterol.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:ldlcholesterol.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:ldlcholesterol.extension:ldlcalculated", "path": "Observation.extension", "sliceName": "LDLCalculated", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/lipid-report-ldl-chol-calculated" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Observation:ldlcholesterol.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:ldlcholesterol.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:ldlcholesterol.status", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-display-hint", "valueString": "default: final" } ], "path": "Observation.status", "min": 1, "max": "1", "base": { "path": "Observation.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Codes providing the status of an observation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:ldlcholesterol.category", "path": "Observation.category", "min": 0, "max": "*", "base": { "path": "Observation.category", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes for high level observation categories .", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-category" } } }, { "id": "Observation:ldlcholesterol.code", "path": "Observation.code", "min": 1, "max": "1", "base": { "path": "Observation.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "LDL Cholesterol codes - measured or calculated", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ldlcholesterol-codes" } } }, { "id": "Observation:ldlcholesterol.subject", "path": "Observation.subject", "min": 0, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:ldlcholesterol.effective[x]", "path": "Observation.effective[x]", "min": 0, "max": "1", "base": { "path": "Observation.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "base": { "path": "Observation.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" } ], "condition": [ "obs-7" ], "mustSupport": true, "isSummary": true }, { "id": "Observation:ldlcholesterol.dataAbsentReason", "path": "Observation.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:ldlcholesterol.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:ldlcholesterol.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:ldlcholesterol.bodySite", "path": "Observation.bodySite", "min": 0, "max": "1", "base": { "path": "Observation.bodySite", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Codes describing anatomical locations. May include laterality.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/body-site" } } }, { "id": "Observation:ldlcholesterol.method", "path": "Observation.method", "min": 0, "max": "1", "base": { "path": "Observation.method", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Methods for simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-methods" } } }, { "id": "Observation:ldlcholesterol.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:ldlcholesterol.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:ldlcholesterol.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "obs-3", "severity": "error", "human": "Must have at least a low or a high or text", "expression": "low.exists() or high.exists() or text.exists()", "xpath": "(exists(f:low) or exists(f:high)or exists(f:text))", "source": "Observation.referenceRange" } ], "mustSupport": true }, { "id": "Observation:ldlcholesterol.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:ldlcholesterol.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:ldlcholesterol.referenceRange.modifierExtension", "path": "Observation.referenceRange.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:ldlcholesterol.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.low", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "condition": [ "obs-3" ] }, { "id": "Observation:ldlcholesterol.referenceRange.high", "path": "Observation.referenceRange.high", "min": 1, "max": "1", "base": { "path": "Observation.referenceRange.high", "min": 0, "max": "1" }, "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "fixedQuantity": { "value": 3.0 }, "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "qty-3", "severity": "error", "human": "If a code for the unit is present, the system SHALL also be present", "expression": "code.empty() or system.exists()", "xpath": "not(exists(f:code)) or exists(f:system)", "source": "Quantity" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))", "source": "Quantity:simplequantity" } ] }, { "id": "Observation:ldlcholesterol.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Code for the meaning of a reference range.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/referencerange-meaning" } } }, { "id": "Observation:ldlcholesterol.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:ldlcholesterol.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:ldlcholesterol.related", "path": "Observation.related", "min": 0, "max": "0", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:ldlcholesterol.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:ldlcholesterol.related.modifierExtension", "path": "Observation.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:ldlcholesterol.related.type", "path": "Observation.related.type", "min": 0, "max": "1", "base": { "path": "Observation.related.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "strength": "required", "description": "Codes specifying how two observations are related.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-relationshiptypes" } } }, { "id": "Observation:ldlcholesterol.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:ldlcholesterol.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:ldlcholesterol.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:ldlcholesterol.component.modifierExtension", "path": "Observation.component.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:ldlcholesterol.component.code", "path": "Observation.component.code", "min": 1, "max": "1", "base": { "path": "Observation.component.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:ldlcholesterol.component.value[x]", "path": "Observation.component.value[x]", "min": 0, "max": "1", "base": { "path": "Observation.component.value[x]", "min": 0, "max": "1" }, "type": [ { "code": "Quantity" }, { "code": "CodeableConcept" }, { "code": "string" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "SampledData" }, { "code": "Attachment" }, { "code": "time" }, { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.component.dataAbsentReason", "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1", "base": { "path": "Observation.component.dataAbsentReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "obs-6" ], "binding": { "strength": "extensible", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-valueabsentreason" } } }, { "id": "Observation:ldlcholesterol.component.interpretation", "path": "Observation.component.interpretation", "min": 0, "max": "1", "base": { "path": "Observation.component.interpretation", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "extensible", "description": "Codes identifying interpretations of observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-interpretation" } } }, { "id": "Observation:ldlcholesterol.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:ldlcholesterol.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:ldlcholesterol", "path": "Observation", "sliceName": "LDLCholesterol", "min": 1, "max": "1" }, { "id": "Observation:ldlcholesterol.extension:ldlcalculated", "path": "Observation.extension", "sliceName": "LDLCalculated", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/lipid-report-ldl-chol-calculated" } ] }, { "id": "Observation:ldlcholesterol.code", "path": "Observation.code", "min": 1, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "required", "description": "LDL Cholesterol codes - measured or calculated", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/ldlcholesterol-codes" } } }, { "id": "Observation:ldlcholesterol.valueQuantity", "path": "Observation.valueQuantity", "min": 0, "max": "1", "type": [ { "code": "Quantity" } ], "mustSupport": true }, { "id": "Observation:ldlcholesterol.interpretation", "path": "Observation.interpretation", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:ldlcholesterol.comment", "path": "Observation.comment", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:ldlcholesterol.referenceRange", "path": "Observation.referenceRange", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:ldlcholesterol.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "0" }, { "id": "Observation:ldlcholesterol.referenceRange.high", "path": "Observation.referenceRange.high", "min": 1, "max": "1", "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "fixedQuantity": { "value": 3.0 } }, { "id": "Observation:ldlcholesterol.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "0", "type": [ { "code": "CodeableConcept" } ] }, { "id": "Observation:ldlcholesterol.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "0", "type": [ { "code": "Range" } ] }, { "id": "Observation:ldlcholesterol.related", "path": "Observation.related", "min": 0, "max": "0" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/diagnosticreport-genetics", "resource": { "resourceType": "StructureDefinition", "id": "diagnosticreport-genetics", "url": "http://hl7.org/fhir/StructureDefinition/diagnosticreport-genetics", "name": "DiagnosticReport-Genetics", "status": "draft", "date": "2015-10-09", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "DiagnosticReport", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticReport:diagnosticreport-genetics", "path": "DiagnosticReport", "sliceName": "DiagnosticReport-Genetics", "min": 0, "max": "*", "base": { "path": "DiagnosticReport", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.id", "path": "DiagnosticReport.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.meta", "path": "DiagnosticReport.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.implicitRules", "path": "DiagnosticReport.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.language", "path": "DiagnosticReport.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "DiagnosticReport:diagnosticreport-genetics.text", "path": "DiagnosticReport.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.contained", "path": "DiagnosticReport.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.extension", "path": "DiagnosticReport.extension", "slicing": { "id": "93", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.extension:assessedcondition", "path": "DiagnosticReport.extension", "sliceName": "AssessedCondition", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.extension:familymemberhistory", "path": "DiagnosticReport.extension", "sliceName": "FamilyMemberHistory", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsFamilyMemberHistory" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.extension:analysis", "path": "DiagnosticReport.extension", "sliceName": "Analysis", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAnalysis" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.modifierExtension", "path": "DiagnosticReport.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.identifier", "path": "DiagnosticReport.identifier", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.status", "path": "DiagnosticReport.status", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The status of the diagnostic report as a whole.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-report-status" } } }, { "id": "DiagnosticReport:diagnosticreport-genetics.category", "path": "DiagnosticReport.category", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.category", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes for diagnostic service sections.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections" } } }, { "id": "DiagnosticReport:diagnosticreport-genetics.code", "path": "DiagnosticReport.code", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "preferred", "description": "Codes that describe Diagnostic Reports.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/report-codes" } } }, { "id": "DiagnosticReport:diagnosticreport-genetics.subject", "path": "DiagnosticReport.subject", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.encounter", "path": "DiagnosticReport.encounter", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.effective[x]", "path": "DiagnosticReport.effective[x]", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.issued", "path": "DiagnosticReport.issued", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.performer", "path": "DiagnosticReport.performer", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.request", "path": "DiagnosticReport.request", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.request", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.specimen", "path": "DiagnosticReport.specimen", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.specimen", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.result", "path": "DiagnosticReport.result", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.imagingStudy", "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImagingStudy" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImagingManifest" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.image", "path": "DiagnosticReport.image", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.image", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.image.id", "path": "DiagnosticReport.image.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.image.extension", "path": "DiagnosticReport.image.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.image.modifierExtension", "path": "DiagnosticReport.image.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.image.comment", "path": "DiagnosticReport.image.comment", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.image.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.image.link", "path": "DiagnosticReport.image.link", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.image.link", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Media" } ], "isSummary": true }, { "id": "DiagnosticReport:diagnosticreport-genetics.conclusion", "path": "DiagnosticReport.conclusion", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.conclusion", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.codedDiagnosis", "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "0", "base": { "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Diagnoses codes provided as adjuncts to the report.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/clinical-findings" } } }, { "id": "DiagnosticReport:diagnosticreport-genetics.presentedForm", "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*" }, "type": [ { "code": "Attachment" } ] } ] }, "differential": { "element": [ { "id": "DiagnosticReport:diagnosticreport-genetics", "path": "DiagnosticReport", "sliceName": "DiagnosticReport-Genetics", "min": 0, "max": "*" }, { "id": "DiagnosticReport:diagnosticreport-genetics.extension:assessedcondition", "path": "DiagnosticReport.extension", "sliceName": "AssessedCondition", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.extension:familymemberhistory", "path": "DiagnosticReport.extension", "sliceName": "FamilyMemberHistory", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsFamilyMemberHistory" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.extension:analysis", "path": "DiagnosticReport.extension", "sliceName": "Analysis", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAnalysis" } ] }, { "id": "DiagnosticReport:diagnosticreport-genetics.codedDiagnosis", "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "0", "type": [ { "code": "CodeableConcept" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/hlaresult", "resource": { "resourceType": "StructureDefinition", "id": "hlaresult", "url": "http://hl7.org/fhir/StructureDefinition/hlaresult", "name": "Profile for HLA Genotyping Results", "status": "draft", "date": "2015-10-09", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "DiagnosticReport", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticReport:hlaresult", "path": "DiagnosticReport", "sliceName": "HLAResult", "min": 0, "max": "*", "base": { "path": "DiagnosticReport", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" } ] }, { "id": "DiagnosticReport:hlaresult.id", "path": "DiagnosticReport.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.meta", "path": "DiagnosticReport.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.implicitRules", "path": "DiagnosticReport.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticReport:hlaresult.language", "path": "DiagnosticReport.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "DiagnosticReport:hlaresult.text", "path": "DiagnosticReport.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DiagnosticReport:hlaresult.contained", "path": "DiagnosticReport.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DiagnosticReport:hlaresult.extension", "path": "DiagnosticReport.extension", "slicing": { "id": "94", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:hlaresult.extension:alleledatabase", "path": "DiagnosticReport.extension", "sliceName": "AlleleDatabase", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsAlleleDatabase" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticReport:hlaresult.extension:glstring", "path": "DiagnosticReport.extension", "sliceName": "Glstring", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsGlstring" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticReport:hlaresult.extension:haploid", "path": "DiagnosticReport.extension", "sliceName": "Haploid", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsHaploid" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticReport:hlaresult.extension:method", "path": "DiagnosticReport.extension", "sliceName": "Method", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsMethod" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "DiagnosticReport:hlaresult.modifierExtension", "path": "DiagnosticReport.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DiagnosticReport:hlaresult.identifier", "path": "DiagnosticReport.identifier", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.status", "path": "DiagnosticReport.status", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The status of the diagnostic report as a whole.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-report-status" } } }, { "id": "DiagnosticReport:hlaresult.category", "path": "DiagnosticReport.category", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.category", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes for diagnostic service sections.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-service-sections" } } }, { "id": "DiagnosticReport:hlaresult.code", "path": "DiagnosticReport.code", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "preferred", "description": "Codes that describe Diagnostic Reports.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/report-codes" } } }, { "id": "DiagnosticReport:hlaresult.subject", "path": "DiagnosticReport.subject", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.encounter", "path": "DiagnosticReport.encounter", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.effective[x]", "path": "DiagnosticReport.effective[x]", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.effective[x]", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.issued", "path": "DiagnosticReport.issued", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.performer", "path": "DiagnosticReport.performer", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.request", "path": "DiagnosticReport.request", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.request", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest" } ] }, { "id": "DiagnosticReport:hlaresult.specimen", "path": "DiagnosticReport.specimen", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.specimen", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "DiagnosticReport:hlaresult.result", "path": "DiagnosticReport.result", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Observation" } ] }, { "id": "DiagnosticReport:hlaresult.imagingStudy", "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImagingStudy" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ImagingManifest" } ] }, { "id": "DiagnosticReport:hlaresult.image", "path": "DiagnosticReport.image", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.image", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.image.id", "path": "DiagnosticReport.image.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:hlaresult.image.extension", "path": "DiagnosticReport.image.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:hlaresult.image.modifierExtension", "path": "DiagnosticReport.image.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticReport:hlaresult.image.comment", "path": "DiagnosticReport.image.comment", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.image.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:hlaresult.image.link", "path": "DiagnosticReport.image.link", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.image.link", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Media" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.conclusion", "path": "DiagnosticReport.conclusion", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.conclusion", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:hlaresult.codedDiagnosis", "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.codedDiagnosis", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Diagnoses codes provided as adjuncts to the report.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/clinical-findings" } } }, { "id": "DiagnosticReport:hlaresult.presentedForm", "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*" }, "type": [ { "code": "Attachment" } ] } ] }, "differential": { "element": [ { "id": "DiagnosticReport:hlaresult", "path": "DiagnosticReport", "sliceName": "HLAResult", "min": 0, "max": "*" }, { "id": "DiagnosticReport:hlaresult.extension:alleledatabase", "path": "DiagnosticReport.extension", "sliceName": "AlleleDatabase", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsAlleleDatabase" } ] }, { "id": "DiagnosticReport:hlaresult.extension:glstring", "path": "DiagnosticReport.extension", "sliceName": "Glstring", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsGlstring" } ] }, { "id": "DiagnosticReport:hlaresult.extension:haploid", "path": "DiagnosticReport.extension", "sliceName": "Haploid", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsHaploid" } ] }, { "id": "DiagnosticReport:hlaresult.extension:method", "path": "DiagnosticReport.extension", "sliceName": "Method", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsMethod" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/clinicaldocument", "resource": { "resourceType": "StructureDefinition", "id": "clinicaldocument", "url": "http://hl7.org/fhir/StructureDefinition/clinicaldocument", "name": "Clinical Document Profile for Composition", "status": "draft", "date": "2015-03-17", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Composition", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition", "derivation": "constraint", "snapshot": { "element": [ { "id": "Composition:clinicaldocument", "path": "Composition", "sliceName": "ClinicalDocument", "min": 0, "max": "*", "base": { "path": "Composition", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" } ] }, { "id": "Composition:clinicaldocument.id", "path": "Composition.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.meta", "path": "Composition.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.implicitRules", "path": "Composition.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Composition:clinicaldocument.language", "path": "Composition.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Composition:clinicaldocument.text", "path": "Composition.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Composition:clinicaldocument.contained", "path": "Composition.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Composition:clinicaldocument.extension", "path": "Composition.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Composition:clinicaldocument.modifierExtension", "path": "Composition.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Composition:clinicaldocument.identifier", "path": "Composition.identifier", "min": 0, "max": "1", "base": { "path": "Composition.identifier", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.date", "path": "Composition.date", "min": 1, "max": "1", "base": { "path": "Composition.date", "min": 1, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.type", "path": "Composition.type", "min": 1, "max": "1", "base": { "path": "Composition.type", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "preferred", "description": "Type of a composition.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/doc-typecodes" } } }, { "id": "Composition:clinicaldocument.class", "path": "Composition.class", "min": 0, "max": "1", "base": { "path": "Composition.class", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "High-level kind of a clinical document at a macro level.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/doc-classcodes" } } }, { "id": "Composition:clinicaldocument.title", "path": "Composition.title", "min": 1, "max": "1", "base": { "path": "Composition.title", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.status", "path": "Composition.status", "min": 1, "max": "1", "base": { "path": "Composition.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The workflow/clinical status of the composition.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/composition-status" } } }, { "id": "Composition:clinicaldocument.confidentiality", "path": "Composition.confidentiality", "min": 0, "max": "1", "base": { "path": "Composition.confidentiality", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Codes specifying the level of confidentiality of the composition.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-ConfidentialityClassification" } } }, { "id": "Composition:clinicaldocument.subject", "path": "Composition.subject", "min": 1, "max": "1", "base": { "path": "Composition.subject", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.author", "path": "Composition.author", "min": 1, "max": "*", "base": { "path": "Composition.author", "min": 1, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.attester", "path": "Composition.attester", "min": 0, "max": "*", "base": { "path": "Composition.attester", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.attester.id", "path": "Composition.attester.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Composition:clinicaldocument.attester.extension", "path": "Composition.attester.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Composition:clinicaldocument.attester.modifierExtension", "path": "Composition.attester.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Composition:clinicaldocument.attester.mode", "path": "Composition.attester.mode", "min": 1, "max": "*", "base": { "path": "Composition.attester.mode", "min": 1, "max": "*" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The way in which a person authenticated a composition.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/composition-attestation-mode" } } }, { "id": "Composition:clinicaldocument.attester.time", "path": "Composition.attester.time", "min": 0, "max": "1", "base": { "path": "Composition.attester.time", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.attester.party", "path": "Composition.attester.party", "min": 0, "max": "1", "base": { "path": "Composition.attester.party", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.custodian", "path": "Composition.custodian", "min": 0, "max": "1", "base": { "path": "Composition.custodian", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.event", "path": "Composition.event", "min": 0, "max": "*", "base": { "path": "Composition.event", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.event.id", "path": "Composition.event.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Composition:clinicaldocument.event.extension", "path": "Composition.event.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Composition:clinicaldocument.event.modifierExtension", "path": "Composition.event.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Composition:clinicaldocument.event.code", "path": "Composition.event.code", "min": 0, "max": "*", "base": { "path": "Composition.event.code", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "This list of codes represents the main clinical acts being documented.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-ActCode" } } }, { "id": "Composition:clinicaldocument.event.period", "path": "Composition.event.period", "min": 0, "max": "1", "base": { "path": "Composition.event.period", "min": 0, "max": "1" }, "type": [ { "code": "Period" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.event.detail", "path": "Composition.event.detail", "min": 0, "max": "*", "base": { "path": "Composition.event.detail", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.encounter", "path": "Composition.encounter", "min": 0, "max": "1", "base": { "path": "Composition.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.section", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "Section" } ], "path": "Composition.section", "min": 0, "max": "*", "base": { "path": "Composition.section", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "cmp-1", "severity": "error", "human": "A section must at least one of text, entries, or sub-sections", "expression": "text.exists() or entry.exists() or section.exists()", "xpath": "exists(f:text) or exists(f:entry) or exists(f:section)" }, { "key": "cmp-2", "severity": "error", "human": "A section can only have an emptyReason if it is empty", "expression": "emptyReason.empty() or entry.empty()", "xpath": "not(exists(f:emptyReason) and exists(f:entry))" } ] }, { "id": "Composition:clinicaldocument.section.id", "path": "Composition.section.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Composition:clinicaldocument.section.extension", "path": "Composition.section.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Composition:clinicaldocument.section.modifierExtension", "path": "Composition.section.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Composition:clinicaldocument.section.title", "path": "Composition.section.title", "min": 0, "max": "1", "base": { "path": "Composition.section.title", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Composition:clinicaldocument.section.code", "path": "Composition.section.code", "min": 0, "max": "1", "base": { "path": "Composition.section.code", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Classification of a section of a composition/document.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/doc-section-codes" } } }, { "id": "Composition:clinicaldocument.section.text", "path": "Composition.section.text", "min": 0, "max": "1", "base": { "path": "Composition.section.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "cmp-1" ] }, { "id": "Composition:clinicaldocument.section.mode", "path": "Composition.section.mode", "min": 0, "max": "1", "base": { "path": "Composition.section.mode", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The processing mode that applies to this section.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/list-mode" } } }, { "id": "Composition:clinicaldocument.section.orderedBy", "path": "Composition.section.orderedBy", "min": 0, "max": "1", "base": { "path": "Composition.section.orderedBy", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "preferred", "description": "What order applies to the items in the entry.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/list-order" } } }, { "id": "Composition:clinicaldocument.section.entry", "path": "Composition.section.entry", "min": 0, "max": "*", "base": { "path": "Composition.section.entry", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "condition": [ "cmp-2" ] }, { "id": "Composition:clinicaldocument.section.emptyReason", "path": "Composition.section.emptyReason", "min": 0, "max": "1", "base": { "path": "Composition.section.emptyReason", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "condition": [ "cmp-2" ], "binding": { "strength": "preferred", "description": "If a section is empty, why it is empty.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/list-empty-reason" } } }, { "id": "Composition:clinicaldocument.section.section", "path": "Composition.section.section", "min": 0, "max": "*", "base": { "path": "Composition.section.section", "min": 0, "max": "*" }, "contentReference": "#Composition:clinicaldocument.section", "condition": [ "cmp-1" ] } ] }, "differential": { "element": [ { "id": "Composition:clinicaldocument", "path": "Composition", "sliceName": "ClinicalDocument", "min": 0, "max": "*" }, { "id": "Composition:clinicaldocument.subject", "path": "Composition.subject", "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ] } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/elementdefinition-de", "resource": { "resourceType": "StructureDefinition", "id": "elementdefinition-de", "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-de", "name": "DataElement constraint on ElementDefinition data type", "status": "draft", "date": "2015-02-28", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "ElementDefinition", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ElementDefinition", "derivation": "constraint", "snapshot": { "element": [ { "id": "ElementDefinition:elementdefinition-de", "path": "ElementDefinition", "sliceName": "elementdefinition-de", "min": 0, "max": "*", "base": { "path": "ElementDefinition", "min": 0, "max": "*" }, "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-2", "severity": "error", "human": "Min <= Max", "expression": "min.empty() or max.empty() or (max = '*') or (min <= max.toInteger())", "xpath": "not(exists(f:min)) or not(exists(f:max)) or (not(f:max/@value) and not(f:min/@value)) or (f:max/@value = '*') or (number(f:max/@value) >= f:min/@value)", "source": "ElementDefinition" }, { "key": "eld-5", "severity": "error", "human": "if the element definition has a contentReference, it cannot have type, defaultValue, fixed, pattern, example, minValue, maxValue, maxLength, or binding", "expression": "contentReference.empty() or (type.empty() and defaultValue.empty() and fixed.empty() and pattern.empty() and example.empty() and minValue.empty() and maxValue.empty() and maxLength.empty() and binding.empty())", "xpath": "not(exists(f:contentReference) and (exists(f:type) or exists(f:*[starts-with(local-name(.), 'value')]) or exists(f:*[starts-with(local-name(.), 'defaultValue')]) or exists(f:*[starts-with(local-name(.), 'fixed')]) or exists(f:*[starts-with(local-name(.), 'pattern')]) or exists(f:*[starts-with(local-name(.), 'example')]) or exists(f:*[starts-with(local-name(.), 'f:minValue')]) or exists(f:*[starts-with(local-name(.), 'f:maxValue')]) or exists(f:maxLength) or exists(f:binding)))", "source": "ElementDefinition" }, { "key": "eld-7", "severity": "error", "human": "Pattern may only be specified if there is one type", "expression": "pattern.empty() or (type.count() <= 1)", "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or (count(f:type)<=1)", "source": "ElementDefinition" }, { "key": "eld-6", "severity": "error", "human": "Fixed value may only be specified if there is one type", "expression": "fixed.empty() or (type.count() <= 1)", "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or (count(f:type)<=1)", "source": "ElementDefinition" }, { "key": "eld-11", "severity": "error", "human": "Binding can only be present for coded elements, string, and uri", "expression": "binding.empty() or type.code.empty() or type.select((code = 'code') or (code = 'Coding') or (code='CodeableConcept') or (code = 'Quantity') or (code = 'Extension') or (code = 'string') or (code = 'uri')).exists()", "xpath": "not(exists(f:binding)) or (count(f:type/f:code) = 0) or f:type/f:code/@value=('code','Coding','CodeableConcept','Quantity','Extension', 'string', 'uri')", "source": "ElementDefinition" }, { "key": "eld-8", "severity": "error", "human": "Pattern and value are mutually exclusive", "expression": "pattern.empty() or fixed.empty()", "xpath": "not(exists(f:*[starts-with(local-name(.), 'pattern')])) or not(exists(f:*[starts-with(local-name(.), 'fixed')]))", "source": "ElementDefinition" }, { "key": "eld-14", "severity": "error", "human": "Constraints must be unique by key", "expression": "constraint.select(key).isDistinct()", "xpath": "count(f:constraint) = count(distinct-values(f:constraint/f:key/@value))", "source": "ElementDefinition" }, { "key": "eld-13", "severity": "error", "human": "Types must be unique by the combination of code and profile", "expression": "type.select(code&profile&targetProfile).isDistinct()", "xpath": "not(exists(for $type in f:type return $type/preceding-sibling::f:type[f:code/@value=$type/f:code/@value and f:profile/@value = $type/f:profile/@value]))", "source": "ElementDefinition" }, { "key": "eld-16", "severity": "error", "human": "sliceName must be a proper token", "expression": "sliceName.empty() or sliceName.matches('^[a-zA-Z0-9\\\\-\\\\_]+$')", "xpath": "not(exists(f:sliceName/@value)) or matches(f:sliceName/@value, '^[a-zA-Z0-9\\\\-\\\\_]+$')", "source": "ElementDefinition" }, { "key": "eld-15", "severity": "error", "human": "default value and meaningWhenMissing are mutually exclusive", "expression": "defaultValue.empty() or meaningWhenMissing.empty()", "xpath": "not(exists(f:*[starts-with(local-name(.), 'fixed')])) or not(exists(f:meaningWhenMissing))", "source": "ElementDefinition" } ] }, { "id": "ElementDefinition:elementdefinition-de.id", "path": "ElementDefinition.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.extension", "path": "ElementDefinition.extension", "slicing": { "id": "95", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.extension:question", "path": "ElementDefinition.extension", "sliceName": "Question", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/elementdefinition-question" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.extension:allowedunits", "path": "ElementDefinition.extension", "sliceName": "AllowedUnits", "min": 0, "max": "1", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.path", "path": "ElementDefinition.path", "min": 1, "max": "1", "base": { "path": "ElementDefinition.path", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.representation", "path": "ElementDefinition.representation", "min": 0, "max": "0", "base": { "path": "ElementDefinition.representation", "min": 0, "max": "*" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How a property is represented on the wire.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/property-representation" } } }, { "id": "ElementDefinition:elementdefinition-de.sliceName", "path": "ElementDefinition.sliceName", "min": 0, "max": "1", "base": { "path": "ElementDefinition.sliceName", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.label", "path": "ElementDefinition.label", "min": 0, "max": "1", "base": { "path": "ElementDefinition.label", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.code", "path": "ElementDefinition.code", "min": 0, "max": "*", "base": { "path": "ElementDefinition.code", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes that indicate the meaning of a data element.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "ElementDefinition:elementdefinition-de.slicing", "path": "ElementDefinition.slicing", "min": 0, "max": "0", "base": { "path": "ElementDefinition.slicing", "min": 0, "max": "1" }, "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-1", "severity": "error", "human": "If there are no discriminators, there must be a definition", "expression": "discriminator.exists() or description.exists()", "xpath": "(f:discriminator) or (f:description)", "source": "ElementDefinition.slicing" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.slicing.id", "path": "ElementDefinition.slicing.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.slicing.extension", "path": "ElementDefinition.slicing.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.slicing.discriminator", "path": "ElementDefinition.slicing.discriminator", "min": 0, "max": "*", "base": { "path": "ElementDefinition.slicing.discriminator", "min": 0, "max": "*" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.slicing.description", "path": "ElementDefinition.slicing.description", "min": 0, "max": "1", "base": { "path": "ElementDefinition.slicing.description", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "condition": [ "eld-1" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.slicing.ordered", "path": "ElementDefinition.slicing.ordered", "min": 0, "max": "1", "base": { "path": "ElementDefinition.slicing.ordered", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.slicing.rules", "path": "ElementDefinition.slicing.rules", "min": 1, "max": "1", "base": { "path": "ElementDefinition.slicing.rules", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How slices are interpreted when evaluating an instance.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-slicing-rules" } } }, { "id": "ElementDefinition:elementdefinition-de.short", "path": "ElementDefinition.short", "min": 0, "max": "0", "base": { "path": "ElementDefinition.short", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.definition", "path": "ElementDefinition.definition", "min": 0, "max": "1", "base": { "path": "ElementDefinition.definition", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.comments", "path": "ElementDefinition.comments", "min": 0, "max": "1", "base": { "path": "ElementDefinition.comments", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.requirements", "path": "ElementDefinition.requirements", "min": 0, "max": "1", "base": { "path": "ElementDefinition.requirements", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.alias", "path": "ElementDefinition.alias", "min": 0, "max": "*", "base": { "path": "ElementDefinition.alias", "min": 0, "max": "*" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.min", "path": "ElementDefinition.min", "min": 0, "max": "1", "base": { "path": "ElementDefinition.min", "min": 0, "max": "1" }, "type": [ { "code": "integer" } ], "condition": [ "eld-2" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.max", "path": "ElementDefinition.max", "min": 0, "max": "1", "base": { "path": "ElementDefinition.max", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "condition": [ "eld-3", "eld-2" ], "constraint": [ { "key": "eld-3", "severity": "error", "human": "Max SHALL be a number or \"*\"", "expression": "empty() or ($this = '*') or (toInteger() >= 0)", "xpath": "@value='*' or (normalize-space(@value)!='' and normalize-space(translate(@value, '0123456789',''))='')" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.base", "path": "ElementDefinition.base", "min": 0, "max": "1", "base": { "path": "ElementDefinition.base", "min": 0, "max": "1" }, "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.base.id", "path": "ElementDefinition.base.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.base.extension", "path": "ElementDefinition.base.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.base.path", "path": "ElementDefinition.base.path", "min": 1, "max": "1", "base": { "path": "ElementDefinition.base.path", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.base.min", "path": "ElementDefinition.base.min", "min": 1, "max": "1", "base": { "path": "ElementDefinition.base.min", "min": 1, "max": "1" }, "type": [ { "code": "integer" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.base.max", "path": "ElementDefinition.base.max", "min": 1, "max": "1", "base": { "path": "ElementDefinition.base.max", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.contentReference", "path": "ElementDefinition.contentReference", "min": 0, "max": "0", "base": { "path": "ElementDefinition.contentReference", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "condition": [ "eld-5" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.type", "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-explicit-type-name", "valueString": "TypeRef" } ], "path": "ElementDefinition.type", "min": 0, "max": "*", "base": { "path": "ElementDefinition.type", "min": 0, "max": "*" }, "type": [ { "code": "Element" } ], "condition": [ "eld-13" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-4", "severity": "error", "human": "Aggregation may only be specified if one of the allowed types for the element is a resource", "expression": "aggregation.empty() or (code = 'Reference')", "xpath": "not(exists(f:aggregation)) or exists(f:code[@value = 'Reference'])", "source": "ElementDefinition.type" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.type.id", "path": "ElementDefinition.type.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.type.extension", "path": "ElementDefinition.type.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.type.code", "path": "ElementDefinition.type.code", "min": 1, "max": "1", "base": { "path": "ElementDefinition.type.code", "min": 1, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "Either a resource or a data type, including logical model types", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/defined-types" } } }, { "id": "ElementDefinition:elementdefinition-de.type.profile", "path": "ElementDefinition.type.profile", "min": 0, "max": "0", "base": { "path": "ElementDefinition.type.profile", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.type.targetProfile", "path": "ElementDefinition.type.targetProfile", "min": 0, "max": "1", "base": { "path": "ElementDefinition.type.targetProfile", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.type.aggregation", "path": "ElementDefinition.type.aggregation", "min": 0, "max": "0", "base": { "path": "ElementDefinition.type.aggregation", "min": 0, "max": "*" }, "type": [ { "code": "code" } ], "condition": [ "eld-4" ], "isSummary": true, "binding": { "strength": "required", "description": "How resource references can be aggregated.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-aggregation-mode" } } }, { "id": "ElementDefinition:elementdefinition-de.type.versioning", "path": "ElementDefinition.type.versioning", "min": 0, "max": "1", "base": { "path": "ElementDefinition.type.versioning", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "defaultValueCode": "either", "isSummary": true, "binding": { "strength": "required", "description": "Whether a reference needs to be version specific or version independent, or whetehr either can be used", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/reference-version-rules" } } }, { "id": "ElementDefinition:elementdefinition-de.defaultValue[x]", "path": "ElementDefinition.defaultValue[x]", "min": 0, "max": "1", "base": { "path": "ElementDefinition.defaultValue[x]", "min": 0, "max": "1" }, "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-15" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.meaningWhenMissing", "path": "ElementDefinition.meaningWhenMissing", "min": 0, "max": "1", "base": { "path": "ElementDefinition.meaningWhenMissing", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ], "condition": [ "eld-15" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.fixed[x]", "path": "ElementDefinition.fixed[x]", "min": 0, "max": "0", "base": { "path": "ElementDefinition.fixed[x]", "min": 0, "max": "1" }, "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-5", "eld-6", "eld-8" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.pattern[x]", "path": "ElementDefinition.pattern[x]", "min": 0, "max": "0", "base": { "path": "ElementDefinition.pattern[x]", "min": 0, "max": "1" }, "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "condition": [ "eld-5", "eld-7", "eld-8" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.example", "path": "ElementDefinition.example", "min": 0, "max": "*", "base": { "path": "ElementDefinition.example", "min": 0, "max": "*" }, "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.example.id", "path": "ElementDefinition.example.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.example.extension", "path": "ElementDefinition.example.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.example.label", "path": "ElementDefinition.example.label", "min": 1, "max": "1", "base": { "path": "ElementDefinition.example.label", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.example.value[x]", "path": "ElementDefinition.example.value[x]", "min": 1, "max": "1", "base": { "path": "ElementDefinition.example.value[x]", "min": 1, "max": "1" }, "type": [ { "code": "base64Binary" }, { "code": "boolean" }, { "code": "code" }, { "code": "date" }, { "code": "dateTime" }, { "code": "decimal" }, { "code": "id" }, { "code": "instant" }, { "code": "integer" }, { "code": "markdown" }, { "code": "oid" }, { "code": "positiveInt" }, { "code": "string" }, { "code": "time" }, { "code": "unsignedInt" }, { "code": "uri" }, { "code": "Address" }, { "code": "Age" }, { "code": "Annotation" }, { "code": "Attachment" }, { "code": "CodeableConcept" }, { "code": "Coding" }, { "code": "ContactPoint" }, { "code": "Count" }, { "code": "Distance" }, { "code": "Duration" }, { "code": "HumanName" }, { "code": "Identifier" }, { "code": "Money" }, { "code": "Period" }, { "code": "Quantity" }, { "code": "Range" }, { "code": "Ratio" }, { "code": "Reference" }, { "code": "SampledData" }, { "code": "Signature" }, { "code": "Timing" }, { "code": "Meta" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.minValue[x]", "path": "ElementDefinition.minValue[x]", "min": 0, "max": "1", "base": { "path": "ElementDefinition.minValue[x]", "min": 0, "max": "1" }, "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "positiveInt" }, { "code": "unsignedInt" }, { "code": "Quantity" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.maxValue[x]", "path": "ElementDefinition.maxValue[x]", "min": 0, "max": "1", "base": { "path": "ElementDefinition.maxValue[x]", "min": 0, "max": "1" }, "type": [ { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "decimal" }, { "code": "integer" }, { "code": "positiveInt" }, { "code": "unsignedInt" }, { "code": "Quantity" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.maxLength", "path": "ElementDefinition.maxLength", "min": 0, "max": "1", "base": { "path": "ElementDefinition.maxLength", "min": 0, "max": "1" }, "type": [ { "code": "integer" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.condition", "path": "ElementDefinition.condition", "min": 0, "max": "*", "base": { "path": "ElementDefinition.condition", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint", "path": "ElementDefinition.constraint", "min": 0, "max": "*", "base": { "path": "ElementDefinition.constraint", "min": 0, "max": "*" }, "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint.id", "path": "ElementDefinition.constraint.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.constraint.extension", "path": "ElementDefinition.constraint.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.constraint.key", "path": "ElementDefinition.constraint.key", "min": 1, "max": "1", "base": { "path": "ElementDefinition.constraint.key", "min": 1, "max": "1" }, "type": [ { "code": "id" } ], "condition": [ "eld-14" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint.requirements", "path": "ElementDefinition.constraint.requirements", "min": 0, "max": "1", "base": { "path": "ElementDefinition.constraint.requirements", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint.severity", "path": "ElementDefinition.constraint.severity", "min": 1, "max": "1", "base": { "path": "ElementDefinition.constraint.severity", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "SHALL applications comply with this constraint?", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/constraint-severity" } } }, { "id": "ElementDefinition:elementdefinition-de.constraint.human", "path": "ElementDefinition.constraint.human", "min": 1, "max": "1", "base": { "path": "ElementDefinition.constraint.human", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint.expression", "path": "ElementDefinition.constraint.expression", "min": 1, "max": "1", "base": { "path": "ElementDefinition.constraint.expression", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint.xpath", "path": "ElementDefinition.constraint.xpath", "min": 0, "max": "1", "base": { "path": "ElementDefinition.constraint.xpath", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint.source", "path": "ElementDefinition.constraint.source", "min": 0, "max": "1", "base": { "path": "ElementDefinition.constraint.source", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.mustSupport", "path": "ElementDefinition.mustSupport", "min": 0, "max": "1", "base": { "path": "ElementDefinition.mustSupport", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.isModifier", "path": "ElementDefinition.isModifier", "min": 0, "max": "0", "base": { "path": "ElementDefinition.isModifier", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.isSummary", "path": "ElementDefinition.isSummary", "min": 0, "max": "0", "base": { "path": "ElementDefinition.isSummary", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.binding", "path": "ElementDefinition.binding", "min": 0, "max": "1", "base": { "path": "ElementDefinition.binding", "min": 0, "max": "1" }, "type": [ { "code": "Element" } ], "condition": [ "eld-11" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "eld-10", "severity": "error", "human": "provide either a reference or a description (or both)", "expression": "valueSet.exists() or description.exists()", "xpath": "(exists(f:valueSetUri) or exists(f:valueSetReference)) or exists(f:description)" }, { "key": "eld-12", "severity": "error", "human": "ValueSet as a URI SHALL start with http:// or https:// or urn:", "expression": "valueSet.is(uri).not() or valueSet.as(uri).startsWith('http:') or valueSet.as(uri).startsWith('https') or valueSet.as(uri).startsWith('urn:')", "xpath": "not(exists(f:valueSetUri)) or (starts-with(string(f:valueSetUri/@value), 'http:') or starts-with(string(f:valueSetUri/@value), 'https:') or starts-with(string(f:valueSetUri/@value), 'urn:'))" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.binding.id", "path": "ElementDefinition.binding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.binding.extension", "path": "ElementDefinition.binding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.binding.strength", "path": "ElementDefinition.binding.strength", "min": 1, "max": "1", "base": { "path": "ElementDefinition.binding.strength", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "Indication of the degree of conformance expectations associated with a binding.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/binding-strength" } } }, { "id": "ElementDefinition:elementdefinition-de.binding.description", "path": "ElementDefinition.binding.description", "min": 0, "max": "1", "base": { "path": "ElementDefinition.binding.description", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "condition": [ "eld-10" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.binding.valueSet[x]", "path": "ElementDefinition.binding.valueSet[x]", "min": 0, "max": "1", "base": { "path": "ElementDefinition.binding.valueSet[x]", "min": 0, "max": "1" }, "type": [ { "code": "uri" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ValueSet" } ], "condition": [ "eld-10", "eld-12" ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.mapping", "path": "ElementDefinition.mapping", "min": 0, "max": "*", "base": { "path": "ElementDefinition.mapping", "min": 0, "max": "*" }, "type": [ { "code": "Element" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.mapping.id", "path": "ElementDefinition.mapping.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.mapping.extension", "path": "ElementDefinition.mapping.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ElementDefinition:elementdefinition-de.mapping.identity", "path": "ElementDefinition.mapping.identity", "min": 1, "max": "1", "base": { "path": "ElementDefinition.mapping.identity", "min": 1, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.mapping.language", "path": "ElementDefinition.mapping.language", "min": 0, "max": "1", "base": { "path": "ElementDefinition.mapping.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The mime type of an attachment. Any valid mime type is allowed.", "valueSetUri": "http://www.rfc-editor.org/bcp/bcp13.txt" } }, { "id": "ElementDefinition:elementdefinition-de.mapping.map", "path": "ElementDefinition.mapping.map", "min": 1, "max": "1", "base": { "path": "ElementDefinition.mapping.map", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true } ] }, "differential": { "element": [ { "id": "ElementDefinition:elementdefinition-de", "path": "ElementDefinition", "sliceName": "elementdefinition-de", "min": 0, "max": "*" }, { "id": "ElementDefinition:elementdefinition-de.extension:question", "path": "ElementDefinition.extension", "sliceName": "Question", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/elementdefinition-question" } ] }, { "id": "ElementDefinition:elementdefinition-de.extension:allowedunits", "path": "ElementDefinition.extension", "sliceName": "AllowedUnits", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/elementdefinition-allowedUnits" } ] }, { "id": "ElementDefinition:elementdefinition-de.representation", "path": "ElementDefinition.representation", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.slicing", "path": "ElementDefinition.slicing", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.short", "path": "ElementDefinition.short", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.contentReference", "path": "ElementDefinition.contentReference", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.type", "path": "ElementDefinition.type" }, { "id": "ElementDefinition:elementdefinition-de.type.profile", "path": "ElementDefinition.type.profile", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.type.aggregation", "path": "ElementDefinition.type.aggregation", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.defaultValue[x]", "path": "ElementDefinition.defaultValue[x]" }, { "id": "ElementDefinition:elementdefinition-de.meaningWhenMissing", "path": "ElementDefinition.meaningWhenMissing" }, { "id": "ElementDefinition:elementdefinition-de.fixed[x]", "path": "ElementDefinition.fixed[x]", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.pattern[x]", "path": "ElementDefinition.pattern[x]", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.isModifier", "path": "ElementDefinition.isModifier", "min": 0, "max": "0" }, { "id": "ElementDefinition:elementdefinition-de.isSummary", "path": "ElementDefinition.isSummary", "min": 0, "max": "0" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/ehrsrle-auditevent", "resource": { "resourceType": "StructureDefinition", "id": "ehrsrle-auditevent", "url": "http://hl7.org/fhir/StructureDefinition/ehrsrle-auditevent", "name": "EHRS FM Record Lifecycle Event - Audit Event", "status": "draft", "date": "2014-12-04", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "AuditEvent", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AuditEvent", "derivation": "constraint", "snapshot": { "element": [ { "id": "AuditEvent:ehrsrle-auditevent", "path": "AuditEvent", "sliceName": "EHRSRLE-AuditEvent", "min": 0, "max": "*", "base": { "path": "AuditEvent", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.id", "path": "AuditEvent.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.meta", "path": "AuditEvent.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.implicitRules", "path": "AuditEvent.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.language", "path": "AuditEvent.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "AuditEvent:ehrsrle-auditevent.text", "path": "AuditEvent.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "AuditEvent:ehrsrle-auditevent.contained", "path": "AuditEvent.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.extension", "path": "AuditEvent.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.modifierExtension", "path": "AuditEvent.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "AuditEvent:ehrsrle-auditevent.type", "path": "AuditEvent.type", "min": 1, "max": "1", "base": { "path": "AuditEvent.type", "min": 1, "max": "1" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "Type of event.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/audit-event-type" } } }, { "id": "AuditEvent:ehrsrle-auditevent.subtype", "path": "AuditEvent.subtype", "min": 0, "max": "*", "base": { "path": "AuditEvent.subtype", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "Sub-type of event.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/audit-event-sub-type" } } }, { "id": "AuditEvent:ehrsrle-auditevent.action", "path": "AuditEvent.action", "min": 0, "max": "1", "base": { "path": "AuditEvent.action", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "required", "description": "Indicator for type of action performed during the event that generated the audit.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/audit-event-action" } } }, { "id": "AuditEvent:ehrsrle-auditevent.recorded", "path": "AuditEvent.recorded", "min": 1, "max": "1", "base": { "path": "AuditEvent.recorded", "min": 1, "max": "1" }, "type": [ { "code": "instant" } ], "mustSupport": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.outcome", "path": "AuditEvent.outcome", "min": 0, "max": "1", "base": { "path": "AuditEvent.outcome", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "Indicates whether the event succeeded or failed", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/audit-event-outcome" } } }, { "id": "AuditEvent:ehrsrle-auditevent.outcomeDesc", "path": "AuditEvent.outcomeDesc", "min": 0, "max": "1", "base": { "path": "AuditEvent.outcomeDesc", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.purposeOfEvent", "path": "AuditEvent.purposeOfEvent", "min": 0, "max": "*", "base": { "path": "AuditEvent.purposeOfEvent", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "isSummary": true, "binding": { "strength": "extensible", "description": "The reason the activity took place.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" } } }, { "id": "AuditEvent:ehrsrle-auditevent.agent", "path": "AuditEvent.agent", "min": 1, "max": "*", "base": { "path": "AuditEvent.agent", "min": 1, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.id", "path": "AuditEvent.agent.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.agent.extension", "path": "AuditEvent.agent.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.agent.modifierExtension", "path": "AuditEvent.agent.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.role", "path": "AuditEvent.agent.role", "min": 0, "max": "*", "base": { "path": "AuditEvent.agent.role", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "How the agent participated in the event.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/dicm-402-roleid" } } }, { "id": "AuditEvent:ehrsrle-auditevent.agent.reference", "path": "AuditEvent.agent.reference", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.reference", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "mustSupport": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.userId", "path": "AuditEvent.agent.userId", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.userId", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "mustSupport": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.altId", "path": "AuditEvent.agent.altId", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.altId", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.agent.name", "path": "AuditEvent.agent.name", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.name", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.agent.requestor", "path": "AuditEvent.agent.requestor", "min": 1, "max": "1", "base": { "path": "AuditEvent.agent.requestor", "min": 1, "max": "1" }, "type": [ { "code": "boolean" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.location", "path": "AuditEvent.agent.location", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.location", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.policy", "path": "AuditEvent.agent.policy", "min": 0, "max": "*", "base": { "path": "AuditEvent.agent.policy", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.media", "path": "AuditEvent.agent.media", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.media", "min": 0, "max": "1" }, "type": [ { "code": "Coding" } ], "binding": { "strength": "extensible", "description": "Used when the event is about exporting/importing onto media.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/dicm-405-mediatype" } } }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network", "path": "AuditEvent.agent.network", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.network", "min": 0, "max": "1" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network.id", "path": "AuditEvent.agent.network.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network.extension", "path": "AuditEvent.agent.network.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network.modifierExtension", "path": "AuditEvent.agent.network.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network.address", "path": "AuditEvent.agent.network.address", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.network.address", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network.type", "path": "AuditEvent.agent.network.type", "min": 0, "max": "1", "base": { "path": "AuditEvent.agent.network.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "binding": { "strength": "required", "description": "The type of network access point of this agent in the audit event", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/network-type" } } }, { "id": "AuditEvent:ehrsrle-auditevent.agent.purposeOfUse", "path": "AuditEvent.agent.purposeOfUse", "min": 0, "max": "*", "base": { "path": "AuditEvent.agent.purposeOfUse", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "The reason the activity took place.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" } } }, { "id": "AuditEvent:ehrsrle-auditevent.source", "path": "AuditEvent.source", "min": 1, "max": "1", "base": { "path": "AuditEvent.source", "min": 1, "max": "1" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.source.id", "path": "AuditEvent.source.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.source.extension", "path": "AuditEvent.source.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.source.modifierExtension", "path": "AuditEvent.source.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.source.site", "path": "AuditEvent.source.site", "min": 0, "max": "1", "base": { "path": "AuditEvent.source.site", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.source.identifier", "path": "AuditEvent.source.identifier", "min": 1, "max": "1", "base": { "path": "AuditEvent.source.identifier", "min": 1, "max": "1" }, "type": [ { "code": "Identifier" } ], "mustSupport": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.source.type", "path": "AuditEvent.source.type", "min": 0, "max": "*", "base": { "path": "AuditEvent.source.type", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Code specifying the type of system that detected and recorded the event.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/audit-source-type" } } }, { "id": "AuditEvent:ehrsrle-auditevent.entity", "path": "AuditEvent.entity", "min": 0, "max": "*", "base": { "path": "AuditEvent.entity", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "sev-1", "severity": "error", "human": "Either a name or a query (NOT both)", "expression": "name.empty() or query.empty()", "xpath": "not(exists(f:name)) or not(exists(f:query))", "source": "AuditEvent.entity" } ], "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.id", "path": "AuditEvent.entity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.entity.extension", "path": "AuditEvent.entity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.entity.modifierExtension", "path": "AuditEvent.entity.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.identifier", "path": "AuditEvent.entity.identifier", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.identifier", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "mustSupport": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.reference", "path": "AuditEvent.entity.reference", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.reference", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "mustSupport": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.type", "path": "AuditEvent.entity.type", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.type", "min": 0, "max": "1" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Code for the entity type involved audited.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/object-type" } } }, { "id": "AuditEvent:ehrsrle-auditevent.entity.role", "path": "AuditEvent.entity.role", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.role", "min": 0, "max": "1" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Code representing the role the entity played in the event.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/object-role" } } }, { "id": "AuditEvent:ehrsrle-auditevent.entity.lifecycle", "path": "AuditEvent.entity.lifecycle", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.lifecycle", "min": 0, "max": "1" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Identifier for the data life-cycle stage for the entity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/object-lifecycle" } } }, { "id": "AuditEvent:ehrsrle-auditevent.entity.securityLabel", "path": "AuditEvent.entity.securityLabel", "min": 0, "max": "*", "base": { "path": "AuditEvent.entity.securityLabel", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Security Labels from the Healthcare Privacy and Security Classification System.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/security-labels" } } }, { "id": "AuditEvent:ehrsrle-auditevent.entity.name", "path": "AuditEvent.entity.name", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.name", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "condition": [ "sev-1" ], "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.description", "path": "AuditEvent.entity.description", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.description", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.entity.query", "path": "AuditEvent.entity.query", "min": 0, "max": "1", "base": { "path": "AuditEvent.entity.query", "min": 0, "max": "1" }, "type": [ { "code": "base64Binary" } ], "condition": [ "sev-1" ], "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.detail", "path": "AuditEvent.entity.detail", "min": 0, "max": "*", "base": { "path": "AuditEvent.entity.detail", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.entity.detail.id", "path": "AuditEvent.entity.detail.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.entity.detail.extension", "path": "AuditEvent.entity.detail.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.entity.detail.modifierExtension", "path": "AuditEvent.entity.detail.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.detail.type", "path": "AuditEvent.entity.detail.type", "min": 1, "max": "1", "base": { "path": "AuditEvent.entity.detail.type", "min": 1, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.entity.detail.value", "path": "AuditEvent.entity.detail.value", "min": 1, "max": "1", "base": { "path": "AuditEvent.entity.detail.value", "min": 1, "max": "1" }, "type": [ { "code": "base64Binary" } ] } ] }, "differential": { "element": [ { "id": "AuditEvent:ehrsrle-auditevent", "path": "AuditEvent", "sliceName": "EHRSRLE-AuditEvent", "min": 0, "max": "*" }, { "id": "AuditEvent:ehrsrle-auditevent.type", "path": "AuditEvent.type", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.subtype", "path": "AuditEvent.subtype", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.action", "path": "AuditEvent.action", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.recorded", "path": "AuditEvent.recorded", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.purposeOfEvent", "path": "AuditEvent.purposeOfEvent", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent", "path": "AuditEvent.agent", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.role", "path": "AuditEvent.agent.role", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.reference", "path": "AuditEvent.agent.reference", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.userId", "path": "AuditEvent.agent.userId", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.requestor", "path": "AuditEvent.agent.requestor", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.location", "path": "AuditEvent.agent.location", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.policy", "path": "AuditEvent.agent.policy", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network", "path": "AuditEvent.agent.network", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network.address", "path": "AuditEvent.agent.network.address", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.network.type", "path": "AuditEvent.agent.network.type", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.agent.purposeOfUse", "path": "AuditEvent.agent.purposeOfUse", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.source", "path": "AuditEvent.source", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.source.site", "path": "AuditEvent.source.site", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.source.identifier", "path": "AuditEvent.source.identifier", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.source.type", "path": "AuditEvent.source.type", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity", "path": "AuditEvent.entity", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.identifier", "path": "AuditEvent.entity.identifier", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.reference", "path": "AuditEvent.entity.reference", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.type", "path": "AuditEvent.entity.type", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.role", "path": "AuditEvent.entity.role", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.lifecycle", "path": "AuditEvent.entity.lifecycle", "mustSupport": true }, { "id": "AuditEvent:ehrsrle-auditevent.entity.securityLabel", "path": "AuditEvent.entity.securityLabel", "mustSupport": true } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/ehrsrle-provenance", "resource": { "resourceType": "StructureDefinition", "id": "ehrsrle-provenance", "url": "http://hl7.org/fhir/StructureDefinition/ehrsrle-provenance", "name": "EHRS FM Record Lifecycle Event - Provenance", "status": "draft", "date": "2014-01-31", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Provenance", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Provenance", "derivation": "constraint", "snapshot": { "element": [ { "id": "Provenance:ehrsrle-provenance", "path": "Provenance", "sliceName": "EHRSRLE-Provenance", "min": 0, "max": "*", "base": { "path": "Provenance", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" } ] }, { "id": "Provenance:ehrsrle-provenance.id", "path": "Provenance.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.meta", "path": "Provenance.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.implicitRules", "path": "Provenance.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.language", "path": "Provenance.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Provenance:ehrsrle-provenance.text", "path": "Provenance.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Provenance:ehrsrle-provenance.contained", "path": "Provenance.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Provenance:ehrsrle-provenance.extension", "path": "Provenance.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Provenance:ehrsrle-provenance.modifierExtension", "path": "Provenance.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Provenance:ehrsrle-provenance.target", "path": "Provenance.target", "min": 1, "max": "*", "base": { "path": "Provenance.target", "min": 1, "max": "*" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "mustSupport": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.period", "path": "Provenance.period", "min": 0, "max": "1", "base": { "path": "Provenance.period", "min": 0, "max": "1" }, "type": [ { "code": "Period" } ], "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.recorded", "path": "Provenance.recorded", "min": 1, "max": "1", "base": { "path": "Provenance.recorded", "min": 1, "max": "1" }, "type": [ { "code": "instant" } ], "mustSupport": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.reason", "path": "Provenance.reason", "min": 0, "max": "*", "base": { "path": "Provenance.reason", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "Indicates the why the event occurred", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" } } }, { "id": "Provenance:ehrsrle-provenance.activity", "path": "Provenance.activity", "min": 0, "max": "1", "base": { "path": "Provenance.activity", "min": 0, "max": "1" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "binding": { "strength": "extensible", "description": "The activity that took place.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-ProvenanceEventCurrentState" } } }, { "id": "Provenance:ehrsrle-provenance.location", "path": "Provenance.location", "min": 0, "max": "1", "base": { "path": "Provenance.location", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.policy", "path": "Provenance.policy", "min": 0, "max": "*", "base": { "path": "Provenance.policy", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.agent", "path": "Provenance.agent", "min": 1, "max": "*", "base": { "path": "Provenance.agent", "min": 1, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ], "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.agent.id", "path": "Provenance.agent.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Provenance:ehrsrle-provenance.agent.extension", "path": "Provenance.agent.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Provenance:ehrsrle-provenance.agent.modifierExtension", "path": "Provenance.agent.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent.role", "path": "Provenance.agent.role", "min": 1, "max": "1", "base": { "path": "Provenance.agent.role", "min": 1, "max": "1" }, "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The role that a provenance agent played with respect to the activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/provenance-agent-role" } } }, { "id": "Provenance:ehrsrle-provenance.agent.who[x]", "path": "Provenance.agent.who[x]", "min": 1, "max": "1", "base": { "path": "Provenance.agent.who[x]", "min": 1, "max": "1" }, "type": [ { "code": "uri" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent.onBehalfOf[x]", "path": "Provenance.agent.onBehalfOf[x]", "min": 0, "max": "1", "base": { "path": "Provenance.agent.onBehalfOf[x]", "min": 0, "max": "1" }, "type": [ { "code": "uri" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization" } ] }, { "id": "Provenance:ehrsrle-provenance.agent.relatedAgentType", "path": "Provenance.agent.relatedAgentType", "min": 0, "max": "1", "base": { "path": "Provenance.agent.relatedAgentType", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Type of relationship between two provenance agents.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-RoleLinkType" } } }, { "id": "Provenance:ehrsrle-provenance.entity", "path": "Provenance.entity", "min": 0, "max": "*", "base": { "path": "Provenance.entity", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "Provenance:ehrsrle-provenance.entity.id", "path": "Provenance.entity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Provenance:ehrsrle-provenance.entity.extension", "path": "Provenance.entity.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Provenance:ehrsrle-provenance.entity.modifierExtension", "path": "Provenance.entity.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.entity.role", "path": "Provenance.entity.role", "min": 1, "max": "1", "base": { "path": "Provenance.entity.role", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "How an entity was used in an activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/provenance-entity-role" } } }, { "id": "Provenance:ehrsrle-provenance.entity.reference", "path": "Provenance.entity.reference", "min": 1, "max": "1", "base": { "path": "Provenance.entity.reference", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.entity.agent", "path": "Provenance.entity.agent", "min": 0, "max": "*", "base": { "path": "Provenance.entity.agent", "min": 0, "max": "*" }, "contentReference": "#Provenance:ehrsrle-provenance.agent" }, { "id": "Provenance:ehrsrle-provenance.signature", "path": "Provenance.signature", "min": 0, "max": "*", "base": { "path": "Provenance.signature", "min": 0, "max": "*" }, "type": [ { "code": "Signature" } ], "mustSupport": true } ] }, "differential": { "element": [ { "id": "Provenance:ehrsrle-provenance", "path": "Provenance", "sliceName": "EHRSRLE-Provenance", "min": 0, "max": "*" }, { "id": "Provenance:ehrsrle-provenance.target", "path": "Provenance.target", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.period", "path": "Provenance.period", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.recorded", "path": "Provenance.recorded", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.reason", "path": "Provenance.reason", "mustSupport": true, "binding": { "strength": "extensible", "description": "Indicates the why the event occurred", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-PurposeOfUse" } } }, { "id": "Provenance:ehrsrle-provenance.activity", "path": "Provenance.activity", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.location", "path": "Provenance.location", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.policy", "path": "Provenance.policy", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.agent", "path": "Provenance.agent", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.agent.actor", "path": "Provenance.agent.actor", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.agent.userId", "path": "Provenance.agent.userId", "mustSupport": true }, { "id": "Provenance:ehrsrle-provenance.signature", "path": "Provenance.signature", "mustSupport": true } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/cqif-questionnaire", "resource": { "resourceType": "StructureDefinition", "id": "cqif-questionnaire", "url": "http://hl7.org/fhir/StructureDefinition/cqif-questionnaire", "name": "CQIF-Questionnaire", "status": "draft", "date": "2015-05-30", "fhirVersion": "1.8.0", "kind": "resource", "abstract": false, "type": "Questionnaire", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "derivation": "constraint", "snapshot": { "element": [ { "id": "Questionnaire:cqif-questionnaire", "path": "Questionnaire", "sliceName": "CQIF-Questionnaire", "min": 0, "max": "*", "base": { "path": "Questionnaire", "min": 0, "max": "*" }, "constraint": [ { "key": "dom-2", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain nested Resources", "expression": "contained.contained.empty()", "xpath": "not(parent::f:contained and f:contained)", "source": "DomainResource" }, { "key": "dom-1", "severity": "error", "human": "If the resource is contained in another resource, it SHALL NOT contain any narrative", "expression": "contained.text.empty()", "xpath": "not(parent::f:contained and f:text)", "source": "DomainResource" }, { "key": "dom-4", "severity": "error", "human": "If a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated", "expression": "contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()", "xpath": "not(exists(f:contained/*/f:meta/f:versionId)) and not(exists(f:contained/*/f:meta/f:lastUpdated))", "source": "DomainResource" }, { "key": "dom-3", "severity": "error", "human": "If the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource", "expression": "contained.where(('#'+id in %resource.descendants().reference).not()).empty()", "xpath": "not(exists(for $id in f:contained/*/@id return $id[not(ancestor::f:contained/parent::*/descendant::f:reference/@value=concat('#', $id))]))", "source": "DomainResource" }, { "key": "que-2", "severity": "error", "human": "The link ids for groups and questions must be unique within the questionnaire", "expression": "descendants().linkId.isDistinct()", "xpath": "count(descendant::f:linkId/@value)=count(distinct-values(descendant::f:linkId/@value))", "source": "Questionnaire" } ] }, { "id": "Questionnaire:cqif-questionnaire.id", "path": "Questionnaire.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "1" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.meta", "path": "Questionnaire.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "1" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.implicitRules", "path": "Questionnaire.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.language", "path": "Questionnaire.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "binding": { "extension": [ { "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-maxValueSet", "valueReference": { "reference": "http://hl7.org/fhir/ValueSet/all-languages" } } ], "strength": "extensible", "description": "A human language.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/languages" } } }, { "id": "Questionnaire:cqif-questionnaire.text", "path": "Questionnaire.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "1" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Questionnaire:cqif-questionnaire.contained", "path": "Questionnaire.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Questionnaire:cqif-questionnaire.extension:library", "path": "Questionnaire.extension", "sliceName": "library", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-library" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Questionnaire:cqif-questionnaire.modifierExtension", "path": "Questionnaire.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Questionnaire:cqif-questionnaire.url", "path": "Questionnaire.url", "min": 0, "max": "1", "base": { "path": "Questionnaire.url", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.identifier", "path": "Questionnaire.identifier", "min": 0, "max": "*", "base": { "path": "Questionnaire.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.version", "path": "Questionnaire.version", "min": 0, "max": "1", "base": { "path": "Questionnaire.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.status", "path": "Questionnaire.status", "min": 1, "max": "1", "base": { "path": "Questionnaire.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "Lifecycle status of the questionnaire.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/questionnaire-status" } } }, { "id": "Questionnaire:cqif-questionnaire.date", "path": "Questionnaire.date", "min": 0, "max": "1", "base": { "path": "Questionnaire.date", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.publisher", "path": "Questionnaire.publisher", "min": 0, "max": "1", "base": { "path": "Questionnaire.publisher", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.telecom", "path": "Questionnaire.telecom", "min": 0, "max": "*", "base": { "path": "Questionnaire.telecom", "min": 0, "max": "*" }, "type": [ { "code": "ContactPoint" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.useContext", "path": "Questionnaire.useContext", "min": 0, "max": "*", "base": { "path": "Questionnaire.useContext", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "Indicates the countries, regions, disciplines and other aspects of use within which this artifact is targeted for use.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/use-context" } } }, { "id": "Questionnaire:cqif-questionnaire.title", "path": "Questionnaire.title", "min": 0, "max": "1", "base": { "path": "Questionnaire.title", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.concept", "path": "Questionnaire.concept", "min": 0, "max": "*", "base": { "path": "Questionnaire.concept", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes for questionnaires, groups and individual questions", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions" } } }, { "id": "Questionnaire:cqif-questionnaire.subjectType", "path": "Questionnaire.subjectType", "min": 0, "max": "*", "base": { "path": "Questionnaire.subjectType", "min": 0, "max": "*" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "One of the resource types defined as part of FHIR.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-types" } } }, { "id": "Questionnaire:cqif-questionnaire.item", "path": "Questionnaire.item", "min": 0, "max": "*", "base": { "path": "Questionnaire.item", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "condition": [ "que-3" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "que-9", "severity": "error", "human": "Read-only can't be specified for \"display\" items", "expression": "type!='display' or readOnly.empty()", "xpath": "not(f:type/@value='display' and f:readOnly)", "source": "Questionnaire.item" }, { "key": "que-8", "severity": "error", "human": "Default values can't be specified for groups or display items", "expression": "(type!='group' and type!='display') or initial.empty()", "xpath": "not(f:type/@value=('group', 'display') and f:*[starts-with(local-name(.), 'initial')])", "source": "Questionnaire.item" }, { "key": "que-6", "severity": "error", "human": "Required and repeat aren't permitted for display items", "expression": "type!='display' or (required.empty() and repeats.empty())", "xpath": "not(f:type/@value='display' and (f:required or f:repeats))", "source": "Questionnaire.item" }, { "key": "que-5", "severity": "error", "human": "Only 'choice' items can have options", "expression": "(type ='choice' or type = 'open-choice') or (options.empty() and option.empty())", "xpath": "f:type/@value=('choice','open-choice') or not(f:option or f:options)", "source": "Questionnaire.item" }, { "key": "que-4", "severity": "error", "human": "A question cannot have both option and options", "expression": "option.empty() or options.empty()", "xpath": "not(f:options and f:option)", "source": "Questionnaire.item" }, { "key": "que-3", "severity": "error", "human": "Display items cannot have a \"concept\" asserted", "expression": "type!='display' or concept.empty()", "xpath": "not(f:type/@value='display' and f:concept)", "source": "Questionnaire.item" }, { "key": "que-10", "severity": "error", "human": "Maximum length can only be declared for simple question types", "expression": "(type in ('boolean' | 'decimal' | 'integer' | 'string' | 'text' | 'url')) or maxLength.empty()", "xpath": "f:type/@value=('boolean', 'decimal', 'integer', 'open-choice', 'string', 'text', 'url') or not(f:maxLength)", "source": "Questionnaire.item" }, { "key": "que-1", "severity": "error", "human": "Group items must have nested items, display items cannot have nested items", "expression": "(type='group' implies item.empty().not()) and (type.trace('type')='display' implies item.trace('item').empty())", "xpath": "not((f:type/@value='group' and not(f:item)) or (f:type/@value='display' and f:item))", "source": "Questionnaire.item" }, { "key": "que-11", "severity": "error", "human": "Type is required if a definition is not provided", "expression": "definition.empty() implies type.exists()", "xpath": "not(exists(f:type)) or exists(f:definition)", "source": "Questionnaire.item" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.id", "path": "Questionnaire.item.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension", "path": "Questionnaire.item.extension", "slicing": { "id": "96", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:condition", "path": "Questionnaire.item.extension", "sliceName": "condition", "min": 0, "max": "1", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-condition" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:initialvalue", "path": "Questionnaire.item.extension", "sliceName": "initialValue", "min": 0, "max": "1", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-initialValue" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:calculatedvalue", "path": "Questionnaire.item.extension", "sliceName": "calculatedValue", "min": 0, "max": "1", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-calculatedValue" } ], "condition": [ "ele-1" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "ext-1", "severity": "error", "human": "Must have either extensions or value[x], not both", "expression": "extension.exists() != value.exists()", "xpath": "exists(f:extension)!=exists(f:*[starts-with(local-name(.), 'value')])", "source": "Extension" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.modifierExtension", "path": "Questionnaire.item.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.item.linkId", "path": "Questionnaire.item.linkId", "min": 1, "max": "1", "base": { "path": "Questionnaire.item.linkId", "min": 1, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.definition", "path": "Questionnaire.item.definition", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.definition", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "condition": [ "que-11" ] }, { "id": "Questionnaire:cqif-questionnaire.item.concept", "path": "Questionnaire.item.concept", "min": 0, "max": "*", "base": { "path": "Questionnaire.item.concept", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "condition": [ "que-3" ], "isSummary": true, "binding": { "strength": "example", "description": "Codes for questionnaires, groups and individual questions", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/questionnaire-questions" } } }, { "id": "Questionnaire:cqif-questionnaire.item.prefix", "path": "Questionnaire.item.prefix", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.prefix", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.text", "path": "Questionnaire.item.text", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.item.type", "path": "Questionnaire.item.type", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.type", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "condition": [ "que-11" ], "binding": { "strength": "required", "description": "Distinguishes groups from questions and display text and indicates data type for questions", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/item-type" } } }, { "id": "Questionnaire:cqif-questionnaire.item.enableWhen", "path": "Questionnaire.item.enableWhen", "min": 0, "max": "*", "base": { "path": "Questionnaire.item.enableWhen", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" }, { "key": "que-7", "severity": "error", "human": "enableWhen must contain either an 'answer' or an 'answered' element", "expression": "hasAnswer.exists() xor answer.exists()", "xpath": "count(*[starts-with(local-name(.), 'answer')]|answered) = 1" } ], "isModifier": true, "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.item.enableWhen.id", "path": "Questionnaire.item.enableWhen.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.enableWhen.extension", "path": "Questionnaire.item.enableWhen.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.enableWhen.modifierExtension", "path": "Questionnaire.item.enableWhen.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.item.enableWhen.question", "path": "Questionnaire.item.enableWhen.question", "min": 1, "max": "1", "base": { "path": "Questionnaire.item.enableWhen.question", "min": 1, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.enableWhen.hasAnswer", "path": "Questionnaire.item.enableWhen.hasAnswer", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.enableWhen.hasAnswer", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "condition": [ "que-7" ] }, { "id": "Questionnaire:cqif-questionnaire.item.enableWhen.answer[x]", "path": "Questionnaire.item.enableWhen.answer[x]", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.enableWhen.answer[x]", "min": 0, "max": "1" }, "type": [ { "code": "boolean" }, { "code": "decimal" }, { "code": "integer" }, { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "string" }, { "code": "uri" }, { "code": "Attachment" }, { "code": "Coding" }, { "code": "Quantity" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "condition": [ "que-7" ] }, { "id": "Questionnaire:cqif-questionnaire.item.required", "path": "Questionnaire.item.required", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.required", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "condition": [ "que-6" ] }, { "id": "Questionnaire:cqif-questionnaire.item.repeats", "path": "Questionnaire.item.repeats", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.repeats", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "defaultValueBoolean": false, "condition": [ "que-6" ] }, { "id": "Questionnaire:cqif-questionnaire.item.readOnly", "path": "Questionnaire.item.readOnly", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.readOnly", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "condition": [ "que-9" ] }, { "id": "Questionnaire:cqif-questionnaire.item.maxLength", "path": "Questionnaire.item.maxLength", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.maxLength", "min": 0, "max": "1" }, "type": [ { "code": "integer" } ], "condition": [ "que-10" ] }, { "id": "Questionnaire:cqif-questionnaire.item.options", "path": "Questionnaire.item.options", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.options", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/ValueSet" } ], "condition": [ "que-4", "que-5" ] }, { "id": "Questionnaire:cqif-questionnaire.item.option", "path": "Questionnaire.item.option", "min": 0, "max": "*", "base": { "path": "Questionnaire.item.option", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "condition": [ "que-4", "que-5" ], "constraint": [ { "key": "ele-1", "severity": "error", "human": "All FHIR elements must have a @value or children", "expression": "children().count() > id.count()", "xpath": "@value|f:*|h:div", "source": "Element" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.option.id", "path": "Questionnaire.item.option.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.option.extension", "path": "Questionnaire.item.option.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.option.modifierExtension", "path": "Questionnaire.item.option.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.item.option.value[x]", "path": "Questionnaire.item.option.value[x]", "min": 1, "max": "1", "base": { "path": "Questionnaire.item.option.value[x]", "min": 1, "max": "1" }, "type": [ { "code": "integer" }, { "code": "date" }, { "code": "time" }, { "code": "string" }, { "code": "Coding" } ], "binding": { "strength": "example", "description": "Allowed values to answer questions.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/questionnaire-answers" } } }, { "id": "Questionnaire:cqif-questionnaire.item.initial[x]", "path": "Questionnaire.item.initial[x]", "min": 0, "max": "1", "base": { "path": "Questionnaire.item.initial[x]", "min": 0, "max": "1" }, "type": [ { "code": "boolean" }, { "code": "decimal" }, { "code": "integer" }, { "code": "date" }, { "code": "dateTime" }, { "code": "instant" }, { "code": "time" }, { "code": "string" }, { "code": "uri" }, { "code": "Attachment" }, { "code": "Coding" }, { "code": "Quantity" }, { "code": "Reference", "targetProfile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "condition": [ "que-8" ] }, { "id": "Questionnaire:cqif-questionnaire.item.item", "path": "Questionnaire.item.item", "min": 0, "max": "*", "base": { "path": "Questionnaire.item.item", "min": 0, "max": "*" }, "contentReference": "#Questionnaire:cqif-questionnaire.item", "condition": [ "que-1" ] } ] }, "differential": { "element": [ { "id": "Questionnaire:cqif-questionnaire", "path": "Questionnaire", "sliceName": "CQIF-Questionnaire", "min": 0, "max": "*" }, { "id": "Questionnaire:cqif-questionnaire.extension:library", "path": "Questionnaire.extension", "sliceName": "library", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-library" } ] }, { "id": "Questionnaire:cqif-questionnaire.item", "path": "Questionnaire.item" }, { "id": "Questionnaire:cqif-questionnaire.item.extension:condition", "path": "Questionnaire.item.extension", "sliceName": "condition", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-condition" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:initialvalue", "path": "Questionnaire.item.extension", "sliceName": "initialValue", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-initialValue" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:calculatedvalue", "path": "Questionnaire.item.extension", "sliceName": "calculatedValue", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-calculatedValue" } ] } ] } } } ] }