{ "resourceType": "Bundle", "id": "profiles-others", "meta": { "lastUpdated": "2016-08-11T09:23:49.667-04:00" }, "type": "collection", "entry": [ { "fullUrl": "http://hl7.org/fhir/StructureDefinition/xdsdocumentreference", "resource": { "resourceType": "StructureDefinition", "id": "xdsdocumentreference", "url": "http://hl7.org/fhir/StructureDefinition/xdsdocumentreference", "name": "XDS profile for Document Reference", "status": "draft", "date": "2012-06-24", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "DocumentReference", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentReference", "derivation": "constraint", "snapshot": { "element": [ { "id": "DocumentReference:xdsdocumentreference", "path": "DocumentReference", "name": "XDSDocumentReference", "min": 0, "max": "*", "base": { "path": "DocumentReference", "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "DocumentReference:xdsdocumentreference.id", "path": "DocumentReference.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.meta", "path": "DocumentReference.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.implicitRules", "path": "DocumentReference.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.language", "path": "DocumentReference.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "*" }, "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": "DocumentReference:xdsdocumentreference.text", "path": "DocumentReference.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "*" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DocumentReference:xdsdocumentreference.contained", "path": "DocumentReference.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DocumentReference:xdsdocumentreference.extension", "path": "DocumentReference.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentReference:xdsdocumentreference.modifierExtension", "path": "DocumentReference.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DocumentReference:xdsdocumentreference.masterIdentifier", "path": "DocumentReference.masterIdentifier", "min": 1, "max": "1", "base": { "path": "DocumentReference.masterIdentifier", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.identifier", "path": "DocumentReference.identifier", "min": 0, "max": "*", "base": { "path": "DocumentReference.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.subject", "path": "DocumentReference.subject", "min": 1, "max": "1", "base": { "path": "DocumentReference.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.type", "path": "DocumentReference.type", "min": 1, "max": "1", "base": { "path": "DocumentReference.type", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "preferred", "description": "Precise type of clinical document.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes" } } }, { "id": "DocumentReference:xdsdocumentreference.class", "path": "DocumentReference.class", "min": 1, "max": "1", "base": { "path": "DocumentReference.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/c80-doc-classcodes" } } }, { "id": "DocumentReference:xdsdocumentreference.author", "path": "DocumentReference.author", "min": 1, "max": "*", "base": { "path": "DocumentReference.author", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.custodian", "path": "DocumentReference.custodian", "min": 0, "max": "0", "base": { "path": "DocumentReference.custodian", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.authenticator", "path": "DocumentReference.authenticator", "min": 0, "max": "1", "base": { "path": "DocumentReference.authenticator", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.created", "path": "DocumentReference.created", "min": 1, "max": "1", "base": { "path": "DocumentReference.created", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.indexed", "path": "DocumentReference.indexed", "min": 1, "max": "1", "base": { "path": "DocumentReference.indexed", "min": 1, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.status", "path": "DocumentReference.status", "min": 1, "max": "1", "base": { "path": "DocumentReference.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The status of the document reference.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/document-reference-status" } } }, { "id": "DocumentReference:xdsdocumentreference.docStatus", "path": "DocumentReference.docStatus", "min": 0, "max": "0", "base": { "path": "DocumentReference.docStatus", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "required", "description": "Status of the underlying document.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/composition-status" } } }, { "id": "DocumentReference:xdsdocumentreference.relatesTo", "path": "DocumentReference.relatesTo", "min": 0, "max": "*", "base": { "path": "DocumentReference.relatesTo", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.relatesTo.id", "path": "DocumentReference.relatesTo.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DocumentReference:xdsdocumentreference.relatesTo.extension", "path": "DocumentReference.relatesTo.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentReference:xdsdocumentreference.relatesTo.modifierExtension", "path": "DocumentReference.relatesTo.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.relatesTo.code", "path": "DocumentReference.relatesTo.code", "min": 1, "max": "1", "base": { "path": "DocumentReference.relatesTo.code", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isSummary": true, "binding": { "strength": "required", "description": "The type of relationship between documents.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/document-relationship-type" } } }, { "id": "DocumentReference:xdsdocumentreference.relatesTo.target", "path": "DocumentReference.relatesTo.target", "min": 1, "max": "1", "base": { "path": "DocumentReference.relatesTo.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/DocumentReference" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.description", "path": "DocumentReference.description", "min": 0, "max": "1", "base": { "path": "DocumentReference.description", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.securityLabel", "path": "DocumentReference.securityLabel", "min": 1, "max": "1", "base": { "path": "DocumentReference.securityLabel", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": 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": "DocumentReference:xdsdocumentreference.content", "path": "DocumentReference.content", "min": 1, "max": "*", "base": { "path": "DocumentReference.content", "min": 1, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.id", "path": "DocumentReference.content.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DocumentReference:xdsdocumentreference.content.extension", "path": "DocumentReference.content.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentReference:xdsdocumentreference.content.modifierExtension", "path": "DocumentReference.content.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.attachment", "path": "DocumentReference.content.attachment", "min": 1, "max": "1", "base": { "path": "DocumentReference.content.attachment", "min": 1, "max": "1" }, "type": [ { "code": "Attachment" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.id", "path": "DocumentReference.content.attachment.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.extension", "path": "DocumentReference.content.attachment.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.contentType", "path": "DocumentReference.content.attachment.contentType", "min": 1, "max": "1", "base": { "path": "Attachment.contentType", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "exampleCode": "text/plain; charset=UTF-8, image/png", "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": "DocumentReference:xdsdocumentreference.content.attachment.language", "path": "DocumentReference.content.attachment.language", "min": 0, "max": "1", "base": { "path": "Attachment.language", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "exampleCode": "en-AU", "isSummary": true, "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": "DocumentReference:xdsdocumentreference.content.attachment.data", "path": "DocumentReference.content.attachment.data", "min": 0, "max": "1", "base": { "path": "Attachment.data", "min": 0, "max": "1" }, "type": [ { "code": "base64Binary" } ] }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.url", "path": "DocumentReference.content.attachment.url", "min": 0, "max": "1", "base": { "path": "Attachment.url", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "exampleUri": "http://www.acme.com/logo-small.png", "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.size", "path": "DocumentReference.content.attachment.size", "min": 0, "max": "1", "base": { "path": "Attachment.size", "min": 0, "max": "1" }, "type": [ { "code": "unsignedInt" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.hash", "path": "DocumentReference.content.attachment.hash", "min": 0, "max": "1", "base": { "path": "Attachment.hash", "min": 0, "max": "1" }, "type": [ { "code": "base64Binary" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.title", "path": "DocumentReference.content.attachment.title", "min": 0, "max": "1", "base": { "path": "Attachment.title", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "exampleString": "Official Corporate Logo", "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.creation", "path": "DocumentReference.content.attachment.creation", "min": 0, "max": "1", "base": { "path": "Attachment.creation", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.content.format", "path": "DocumentReference.content.format", "min": 0, "max": "*", "base": { "path": "DocumentReference.content.format", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "preferred", "description": "Document Format Codes.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/formatcodes" } } }, { "id": "DocumentReference:xdsdocumentreference.context", "path": "DocumentReference.context", "min": 0, "max": "1", "base": { "path": "DocumentReference.context", "min": 0, "max": "1" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.id", "path": "DocumentReference.context.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DocumentReference:xdsdocumentreference.context.extension", "path": "DocumentReference.context.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentReference:xdsdocumentreference.context.modifierExtension", "path": "DocumentReference.context.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.encounter", "path": "DocumentReference.context.encounter", "min": 0, "max": "0", "base": { "path": "DocumentReference.context.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.event", "path": "DocumentReference.context.event", "min": 0, "max": "*", "base": { "path": "DocumentReference.context.event", "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": "DocumentReference:xdsdocumentreference.context.period", "path": "DocumentReference.context.period", "min": 1, "max": "1", "base": { "path": "DocumentReference.context.period", "min": 0, "max": "1" }, "type": [ { "code": "Period" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.facilityType", "path": "DocumentReference.context.facilityType", "min": 0, "max": "1", "base": { "path": "DocumentReference.context.facilityType", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "XDS Facility Type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/c80-facilitycodes" } } }, { "id": "DocumentReference:xdsdocumentreference.context.practiceSetting", "path": "DocumentReference.context.practiceSetting", "min": 0, "max": "1", "base": { "path": "DocumentReference.context.practiceSetting", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Additional details about where the content was created (e.g. clinical specialty).", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/c80-practice-codes" } } }, { "id": "DocumentReference:xdsdocumentreference.context.sourcePatientInfo", "path": "DocumentReference.context.sourcePatientInfo", "min": 0, "max": "1", "base": { "path": "DocumentReference.context.sourcePatientInfo", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.related", "path": "DocumentReference.context.related", "min": 0, "max": "*", "base": { "path": "DocumentReference.context.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.related.id", "path": "DocumentReference.context.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DocumentReference:xdsdocumentreference.context.related.extension", "path": "DocumentReference.context.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentReference:xdsdocumentreference.context.related.modifierExtension", "path": "DocumentReference.context.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.related.identifier", "path": "DocumentReference.context.related.identifier", "min": 0, "max": "1", "base": { "path": "DocumentReference.context.related.identifier", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DocumentReference:xdsdocumentreference.context.related.ref", "path": "DocumentReference.context.related.ref", "min": 0, "max": "1", "base": { "path": "DocumentReference.context.related.ref", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true } ] }, "differential": { "element": [ { "id": "DocumentReference:xdsdocumentreference", "path": "DocumentReference", "name": "XDSDocumentReference", "min": 0, "max": "*" }, { "id": "DocumentReference:xdsdocumentreference.masterIdentifier", "path": "DocumentReference.masterIdentifier", "min": 1, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.identifier", "path": "DocumentReference.identifier" }, { "id": "DocumentReference:xdsdocumentreference.subject", "path": "DocumentReference.subject", "min": 1, "max": "1", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" } ] }, { "id": "DocumentReference:xdsdocumentreference.type", "path": "DocumentReference.type" }, { "id": "DocumentReference:xdsdocumentreference.class", "path": "DocumentReference.class", "min": 1, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.author", "path": "DocumentReference.author", "min": 1, "max": "*", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" } ] }, { "id": "DocumentReference:xdsdocumentreference.custodian", "path": "DocumentReference.custodian", "min": 0, "max": "0" }, { "id": "DocumentReference:xdsdocumentreference.authenticator", "path": "DocumentReference.authenticator", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" } ] }, { "id": "DocumentReference:xdsdocumentreference.created", "path": "DocumentReference.created", "min": 1, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.indexed", "path": "DocumentReference.indexed", "min": 1, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.status", "path": "DocumentReference.status" }, { "id": "DocumentReference:xdsdocumentreference.docStatus", "path": "DocumentReference.docStatus", "min": 0, "max": "0" }, { "id": "DocumentReference:xdsdocumentreference.relatesTo", "path": "DocumentReference.relatesTo" }, { "id": "DocumentReference:xdsdocumentreference.relatesTo.code", "path": "DocumentReference.relatesTo.code" }, { "id": "DocumentReference:xdsdocumentreference.relatesTo.target", "path": "DocumentReference.relatesTo.target" }, { "id": "DocumentReference:xdsdocumentreference.description", "path": "DocumentReference.description" }, { "id": "DocumentReference:xdsdocumentreference.securityLabel", "path": "DocumentReference.securityLabel", "min": 1, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.content", "path": "DocumentReference.content" }, { "id": "DocumentReference:xdsdocumentreference.content.attachment", "path": "DocumentReference.content.attachment" }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.contentType", "path": "DocumentReference.content.attachment.contentType", "min": 1, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.language", "path": "DocumentReference.content.attachment.language" }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.url", "path": "DocumentReference.content.attachment.url" }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.size", "path": "DocumentReference.content.attachment.size" }, { "id": "DocumentReference:xdsdocumentreference.content.attachment.hash", "path": "DocumentReference.content.attachment.hash" }, { "id": "DocumentReference:xdsdocumentreference.context", "path": "DocumentReference.context", "min": 0, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.context.encounter", "path": "DocumentReference.context.encounter", "min": 0, "max": "0" }, { "id": "DocumentReference:xdsdocumentreference.context.event", "path": "DocumentReference.context.event" }, { "id": "DocumentReference:xdsdocumentreference.context.period", "path": "DocumentReference.context.period", "min": 1, "max": "1" }, { "id": "DocumentReference:xdsdocumentreference.context.facilityType", "path": "DocumentReference.context.facilityType" }, { "id": "DocumentReference:xdsdocumentreference.context.practiceSetting", "path": "DocumentReference.context.practiceSetting" } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/xdsdocumentmanifest", "resource": { "resourceType": "StructureDefinition", "id": "xdsdocumentmanifest", "url": "http://hl7.org/fhir/StructureDefinition/xdsdocumentmanifest", "name": "XDS profile for Document Reference", "status": "draft", "date": "2012-06-24", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "DocumentManifest", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DocumentManifest", "derivation": "constraint", "snapshot": { "element": [ { "id": "DocumentManifest:xdsdocumentmanifest", "path": "DocumentManifest", "name": "XDSDocumentManifest", "min": 0, "max": "*", "base": { "path": "DocumentManifest", "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.id", "path": "DocumentManifest.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.meta", "path": "DocumentManifest.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.implicitRules", "path": "DocumentManifest.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.language", "path": "DocumentManifest.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "*" }, "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": "DocumentManifest:xdsdocumentmanifest.text", "path": "DocumentManifest.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "*" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DocumentManifest:xdsdocumentmanifest.contained", "path": "DocumentManifest.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.extension", "path": "DocumentManifest.extension", "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.modifierExtension", "path": "DocumentManifest.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DocumentManifest:xdsdocumentmanifest.masterIdentifier", "path": "DocumentManifest.masterIdentifier", "min": 1, "max": "1", "base": { "path": "DocumentManifest.masterIdentifier", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.identifier", "path": "DocumentManifest.identifier", "min": 0, "max": "*", "base": { "path": "DocumentManifest.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.subject", "path": "DocumentManifest.subject", "min": 0, "max": "1", "base": { "path": "DocumentManifest.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.recipient", "path": "DocumentManifest.recipient", "min": 0, "max": "*", "base": { "path": "DocumentManifest.recipient", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.type", "path": "DocumentManifest.type", "min": 0, "max": "1", "base": { "path": "DocumentManifest.type", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "preferred", "description": "Precise type of clinical document.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/c80-doc-typecodes" } } }, { "id": "DocumentManifest:xdsdocumentmanifest.author", "path": "DocumentManifest.author", "min": 1, "max": "*", "base": { "path": "DocumentManifest.author", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.created", "path": "DocumentManifest.created", "min": 0, "max": "1", "base": { "path": "DocumentManifest.created", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.source", "path": "DocumentManifest.source", "min": 0, "max": "1", "base": { "path": "DocumentManifest.source", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.status", "path": "DocumentManifest.status", "min": 1, "max": "1", "base": { "path": "DocumentManifest.status", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "required", "description": "The status of the document reference.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/document-reference-status" } } }, { "id": "DocumentManifest:xdsdocumentmanifest.description", "path": "DocumentManifest.description", "min": 0, "max": "1", "base": { "path": "DocumentManifest.description", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.content", "path": "DocumentManifest.content", "min": 1, "max": "*", "base": { "path": "DocumentManifest.content", "min": 1, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.content.id", "path": "DocumentManifest.content.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.content.extension", "path": "DocumentManifest.content.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.content.modifierExtension", "path": "DocumentManifest.content.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.content.p[x]", "path": "DocumentManifest.content.p[x]", "min": 1, "max": "1", "base": { "path": "DocumentManifest.content.p[x]", "min": 1, "max": "1" }, "type": [ { "code": "Attachment" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.related", "path": "DocumentManifest.related", "min": 0, "max": "*", "base": { "path": "DocumentManifest.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.related.id", "path": "DocumentManifest.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.related.extension", "path": "DocumentManifest.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.related.modifierExtension", "path": "DocumentManifest.related.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.related.identifier", "path": "DocumentManifest.related.identifier", "min": 0, "max": "1", "base": { "path": "DocumentManifest.related.identifier", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DocumentManifest:xdsdocumentmanifest.related.ref", "path": "DocumentManifest.related.ref", "min": 0, "max": "1", "base": { "path": "DocumentManifest.related.ref", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true } ] }, "differential": { "element": [ { "id": "DocumentManifest:xdsdocumentmanifest", "path": "DocumentManifest", "name": "XDSDocumentManifest", "min": 0, "max": "*" }, { "id": "DocumentManifest:xdsdocumentmanifest.masterIdentifier", "path": "DocumentManifest.masterIdentifier", "min": 1, "max": "1" }, { "id": "DocumentManifest:xdsdocumentmanifest.subject", "path": "DocumentManifest.subject", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.recipient", "path": "DocumentManifest.recipient", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.type", "path": "DocumentManifest.type", "type": [ { "code": "CodeableConcept" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.author", "path": "DocumentManifest.author", "min": 1, "max": "*", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.created", "path": "DocumentManifest.created", "type": [ { "code": "dateTime" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.source", "path": "DocumentManifest.source", "type": [ { "code": "uri" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.status", "path": "DocumentManifest.status", "type": [ { "code": "code" } ], "binding": { "strength": "required", "description": "The status of the document reference.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/document-reference-status" } } }, { "id": "DocumentManifest:xdsdocumentmanifest.description", "path": "DocumentManifest.description", "type": [ { "code": "string" } ] }, { "id": "DocumentManifest:xdsdocumentmanifest.content", "path": "DocumentManifest.content" } ] } } }, { "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.6.0", "kind": "resource", "abstract": false, "type": "FamilyMemberHistory", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/FamilyMemberHistory", "derivation": "constraint", "snapshot": { "element": [ { "id": "FamilyMemberHistory:familymemberhistory-genetic", "path": "FamilyMemberHistory", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "key": "fhs-2", "severity": "error", "human": "Can only have estimatedAge is age[x] is present", "expression": "age.exists() or estimatedAge.empty()", "xpath": "exists(*[starts-with(local-name(.), 'age')]) or not(exists(f:estimatedAge))" }, { "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')])" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.id", "path": "FamilyMemberHistory.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.meta", "path": "FamilyMemberHistory.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.implicitRules", "path": "FamilyMemberHistory.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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": "88", "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$family-member-history-genetics-parent", "path": "FamilyMemberHistory.extension", "name": "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" }, { "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')])" } ], "mustSupport": true }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:observation$family-member-history-genetics-observation", "path": "FamilyMemberHistory.extension", "name": "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" }, { "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')])" } ] }, { "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", "profile": "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", "path": "FamilyMemberHistory.relationship", "min": 1, "max": "1", "base": { "path": "FamilyMemberHistory.relationship", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "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", "path": "FamilyMemberHistory.gender", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.gender", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "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]", "path": "FamilyMemberHistory.born[x]", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.born[x]", "min": 0, "max": "1" }, "type": [ { "code": "Period" }, { "code": "date" }, { "code": "string" } ], "condition": [ "fhs-1" ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.age[x]", "path": "FamilyMemberHistory.age[x]", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.age[x]", "min": 0, "max": "1" }, "type": [ { "code": "Age" }, { "code": "Range" }, { "code": "string" } ], "condition": [ "fhs-1" ], "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]", "path": "FamilyMemberHistory.deceased[x]", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.deceased[x]", "min": 0, "max": "1" }, "type": [ { "code": "boolean" }, { "code": "Age" }, { "code": "Range" }, { "code": "date" }, { "code": "string" } ], "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", "path": "FamilyMemberHistory.condition", "min": 0, "max": "*", "base": { "path": "FamilyMemberHistory.condition", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition.id", "path": "FamilyMemberHistory.condition.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition.extension", "path": "FamilyMemberHistory.condition.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.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.code", "path": "FamilyMemberHistory.condition.code", "min": 1, "max": "1", "base": { "path": "FamilyMemberHistory.condition.code", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "binding": { "strength": "example", "description": "Identification of the Condition or diagnosis.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/condition-code" } } }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.condition.outcome", "path": "FamilyMemberHistory.condition.outcome", "min": 0, "max": "1", "base": { "path": "FamilyMemberHistory.condition.outcome", "min": 0, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "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.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" } ] }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.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", "name": "FamilyMemberHistory-Genetic", "min": 0, "max": "*" }, { "id": "FamilyMemberHistory:familymemberhistory-genetic.extension:parent$family-member-history-genetics-parent", "path": "FamilyMemberHistory.extension", "name": "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:observation$family-member-history-genetics-observation", "path": "FamilyMemberHistory.extension", "name": "Observation", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/family-member-history-genetics-observation" } ] } ] } } }, { "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-08-11T09:23:49-04:00", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "ValueSet", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ValueSet", "derivation": "constraint", "snapshot": { "element": [ { "id": "ValueSet:shareablevalueset", "path": "ValueSet", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "key": "vsd-2", "severity": "error", "human": "A value set with only one import SHALL also have an include and/or an exclude", "expression": "compose.import.count() != 1 or compose.include.exists() or compose.exclude.exists()", "xpath": "not(exists(f:compose)) or (count(f:compose/f:import)!=1 or exists(f:compose/f:include) or exists(f:compose/f:exclude))" }, { "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)" } ] }, { "id": "ValueSet:shareablevalueset.id", "path": "ValueSet.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.meta", "path": "ValueSet.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.implicitRules", "path": "ValueSet.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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.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/conformance-resource-status" } } }, { "id": "ValueSet:shareablevalueset.experimental", "path": "ValueSet.experimental", "min": 1, "max": "1", "base": { "path": "ValueSet.experimental", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "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": "BackboneElement" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.contact.id", "path": "ValueSet.contact.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "ValueSet:shareablevalueset.contact.extension", "path": "ValueSet.contact.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "ValueSet:shareablevalueset.contact.modifierExtension", "path": "ValueSet.contact.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "ValueSet:shareablevalueset.contact.name", "path": "ValueSet.contact.name", "min": 0, "max": "1", "base": { "path": "ValueSet.contact.name", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.contact.telecom", "path": "ValueSet.contact.telecom", "min": 0, "max": "*", "base": { "path": "ValueSet.contact.telecom", "min": 0, "max": "*" }, "type": [ { "code": "ContactPoint" } ], "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.lockedDate", "path": "ValueSet.lockedDate", "min": 0, "max": "1", "base": { "path": "ValueSet.lockedDate", "min": 0, "max": "1" }, "type": [ { "code": "date" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.description", "path": "ValueSet.description", "min": 1, "max": "1", "base": { "path": "ValueSet.description", "min": 0, "max": "1" }, "type": [ { "code": "markdown" } ], "isSummary": true }, { "id": "ValueSet:shareablevalueset.useContext", "path": "ValueSet.useContext", "min": 0, "max": "*", "base": { "path": "ValueSet.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": "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.requirements", "path": "ValueSet.requirements", "min": 0, "max": "1", "base": { "path": "ValueSet.requirements", "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": "string" } ] }, { "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": "vsd-1", "severity": "error", "human": "A value set composition SHALL have an include or an import", "expression": "include.exists() or import.exists()", "xpath": "exists(f:include) or exists(f:import)" } ] }, { "id": "ValueSet:shareablevalueset.compose.id", "path": "ValueSet.compose.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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.import", "path": "ValueSet.compose.import", "min": 0, "max": "*", "base": { "path": "ValueSet.compose.import", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "condition": [ "vsd-1" ], "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": 0, "max": "*", "base": { "path": "ValueSet.compose.include", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "condition": [ "vsd-1" ], "constraint": [ { "key": "vsd-11", "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))" } ], "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": "*" }, "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": 1, "max": "1", "base": { "path": "ValueSet.compose.include.system", "min": 1, "max": "1" }, "type": [ { "code": "uri" } ], "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-11" ] }, { "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": "*" }, "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" } ] }, { "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": "*" }, "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-11" ] }, { "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": "*" }, "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" } ], "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.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" ] }, { "id": "ValueSet:shareablevalueset.expansion.id", "path": "ValueSet.expansion.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ] }, { "id": "ValueSet:shareablevalueset.expansion.parameter.id", "path": "ValueSet.expansion.parameter.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": "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": "*" }, "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.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.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", "name": "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/orderforgenetics", "resource": { "resourceType": "StructureDefinition", "id": "orderforgenetics", "url": "http://hl7.org/fhir/StructureDefinition/orderforgenetics", "name": "Diagnostic Request for Genetics", "status": "draft", "date": "2015-10-20", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "DiagnosticRequest", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticRequest:orderforgenetics", "path": "DiagnosticRequest", "name": "OrderForGenetics", "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "DiagnosticRequest:orderforgenetics.id", "path": "DiagnosticRequest.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.meta", "path": "DiagnosticRequest.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.implicitRules", "path": "DiagnosticRequest.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.language", "path": "DiagnosticRequest.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "*" }, "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:orderforgenetics.text", "path": "DiagnosticRequest.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "*" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DiagnosticRequest:orderforgenetics.contained", "path": "DiagnosticRequest.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DiagnosticRequest:orderforgenetics.extension:item$diagnosticrequest-geneticsItem", "path": "DiagnosticRequest.extension", "name": "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" }, { "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')])" } ] }, { "id": "DiagnosticRequest:orderforgenetics.modifierExtension", "path": "DiagnosticRequest.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DiagnosticRequest:orderforgenetics.identifier", "path": "DiagnosticRequest.identifier", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.definition", "path": "DiagnosticRequest.definition", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.definition", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.basedOn", "path": "DiagnosticRequest.basedOn", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.basedOn", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.replaces", "path": "DiagnosticRequest.replaces", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.replaces", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Resource" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.requisition", "path": "DiagnosticRequest.requisition", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.requisition", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.status", "path": "DiagnosticRequest.status", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.status", "min": 0, "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:orderforgenetics.stage", "path": "DiagnosticRequest.stage", "min": 1, "max": "1", "base": { "path": "DiagnosticRequest.stage", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isModifier": true, "isSummary": true, "binding": { "strength": "extensible", "description": "The kind of diagnostic request", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/diagnostic-request-stage" } } }, { "id": "DiagnosticRequest:orderforgenetics.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:orderforgenetics.subject", "path": "DiagnosticRequest.subject", "min": 1, "max": "1", "base": { "path": "DiagnosticRequest.subject", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Location" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.context", "path": "DiagnosticRequest.context", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.context", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Encounter" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/EpisodeOfCare" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.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:orderforgenetics.authored", "path": "DiagnosticRequest.authored", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.authored", "min": 0, "max": "1" }, "type": [ { "code": "dateTime" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.requester", "path": "DiagnosticRequest.requester", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.requester", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.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:orderforgenetics.performer", "path": "DiagnosticRequest.performer", "min": 0, "max": "1", "base": { "path": "DiagnosticRequest.performer", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "DiagnosticRequest:orderforgenetics.reason", "path": "DiagnosticRequest.reason", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.reason", "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:orderforgenetics.supportingInformation", "path": "DiagnosticRequest.supportingInformation", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.supportingInformation", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Resource" } ] }, { "id": "DiagnosticRequest:orderforgenetics.note", "path": "DiagnosticRequest.note", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.note", "min": 0, "max": "*" }, "type": [ { "code": "Annotation" } ] }, { "id": "DiagnosticRequest:orderforgenetics.relevantHistory", "path": "DiagnosticRequest.relevantHistory", "min": 0, "max": "*", "base": { "path": "DiagnosticRequest.relevantHistory", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Provenance" } ] } ] }, "differential": { "element": [ { "id": "DiagnosticRequest:orderforgenetics", "path": "DiagnosticRequest", "name": "OrderForGenetics", "min": 0, "max": "*" }, { "id": "DiagnosticRequest:orderforgenetics.extension:item$diagnosticrequest-geneticsItem", "path": "DiagnosticRequest.extension", "name": "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-08-11T09:23:49-04:00", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "CodeSystem", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/CodeSystem", "derivation": "constraint", "snapshot": { "element": [ { "id": "CodeSystem:shareablecodesystem", "path": "CodeSystem", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" } ] }, { "id": "CodeSystem:shareablecodesystem.id", "path": "CodeSystem.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.meta", "path": "CodeSystem.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.implicitRules", "path": "CodeSystem.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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.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/conformance-resource-status" } } }, { "id": "CodeSystem:shareablecodesystem.experimental", "path": "CodeSystem.experimental", "min": 1, "max": "1", "base": { "path": "CodeSystem.experimental", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "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": "BackboneElement" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.contact.id", "path": "CodeSystem.contact.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "CodeSystem:shareablecodesystem.contact.extension", "path": "CodeSystem.contact.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "CodeSystem:shareablecodesystem.contact.modifierExtension", "path": "CodeSystem.contact.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.contact.name", "path": "CodeSystem.contact.name", "min": 0, "max": "1", "base": { "path": "CodeSystem.contact.name", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.contact.telecom", "path": "CodeSystem.contact.telecom", "min": 0, "max": "*", "base": { "path": "CodeSystem.contact.telecom", "min": 0, "max": "*" }, "type": [ { "code": "ContactPoint" } ], "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" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.useContext", "path": "CodeSystem.useContext", "min": 0, "max": "*", "base": { "path": "CodeSystem.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": "CodeSystem:shareablecodesystem.requirements", "path": "CodeSystem.requirements", "min": 0, "max": "1", "base": { "path": "CodeSystem.requirements", "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": "string" } ] }, { "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" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.filter.id", "path": "CodeSystem.filter.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true }, { "id": "CodeSystem:shareablecodesystem.property.id", "path": "CodeSystem.property.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.id", "path": "CodeSystem.concept.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.designation.id", "path": "CodeSystem.concept.designation.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ] }, { "id": "CodeSystem:shareablecodesystem.concept.property.id", "path": "CodeSystem.concept.property.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "name": "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.6.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:devicemetricobservation", "path": "Observation", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" }, { "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')])))" } ] }, { "id": "Observation:devicemetricobservation.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "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": "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))" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "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": "*" }, "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", "profile": "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" } ], "isSummary": true }, { "id": "Observation:devicemetricobservation.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "name": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" } ], "mustSupport": true }, { "id": "Observation:devicemetricobservation.encounter", "path": "Observation.encounter", "min": 0, "max": "0", "type": [ { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ], "mustSupport": false }, { "id": "Observation:devicemetricobservation.device", "path": "Observation.device", "min": 1, "max": "1", "type": [ { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" } ], "mustSupport": true } ] } } }, { "fullUrl": "http://hl7.org/fhir/StructureDefinition/observationforgenetics", "resource": { "resourceType": "StructureDefinition", "id": "observationforgenetics", "url": "http://hl7.org/fhir/StructureDefinition/observationforgenetics", "name": "Observation for Genetics", "status": "draft", "date": "2016-03-14", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:observationforgenetics", "path": "Observation", "name": "ObservationForGenetics", "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" }, { "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')])))" } ] }, { "id": "Observation:observationforgenetics.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:observationforgenetics.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:observationforgenetics.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "Observation:observationforgenetics.language", "path": "Observation.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "*" }, "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:observationforgenetics.text", "path": "Observation.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "*" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "Observation:observationforgenetics.contained", "path": "Observation.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "Observation:observationforgenetics.extension", "path": "Observation.extension", "slicing": { "id": "89", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observationforgenetics.extension:transcriptreferencesequenceid$observation-geneticsTranscriptReferenceSequenceId", "path": "Observation.extension", "name": "TranscriptReferenceSequenceId", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsTranscriptReferenceSequenceId" } ], "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:proteinreferencesequenceid$observation-geneticsProteinReferenceSequenceId", "path": "Observation.extension", "name": "ProteinReferenceSequenceId", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsProteinReferenceSequenceId" } ], "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:dnasequencevariant$observation-geneticsDNASequenceVariant", "path": "Observation.extension", "name": "DNASequenceVariant", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNASequenceVariant" } ], "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:dnavariantid$observation-geneticsDNAVariantId", "path": "Observation.extension", "name": "DNAVariantId", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNAVariantId" } ], "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:dnasequencevarianttype$observation-geneticsDNASequenceVariantType", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:aminoacidchange$observation-geneticsAminoAcidChange", "path": "Observation.extension", "name": "AminoAcidChange", "min": 0, "max": "1", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChange" } ], "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:aminoacidchangetype$observation-geneticsAminoAcidChangeType", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:gene$observation-geneticsGene", "path": "Observation.extension", "name": "Gene", "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:dnaregionname$observation-geneticsDNARegionName", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:allelename$observation-geneticsAlleleName", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:allelicstate$observation-geneticsAllelicState", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:allelicfrequency$observation-geneticsAllelicFrequency", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:copynumberevent$observation-geneticsCopyNumberEvent", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:genomicsourceclass$observation-geneticsGenomicSourceClass", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:phaseset$observation-geneticsPhaseSet", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:sequence$observation-geneticsSequence", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.extension:interpretation$observation-geneticsInterpretation", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "id": "Observation:observationforgenetics.modifierExtension", "path": "Observation.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "Observation:observationforgenetics.identifier", "path": "Observation.identifier", "min": 0, "max": "*", "base": { "path": "Observation.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ] }, { "id": "Observation:observationforgenetics.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:observationforgenetics.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:observationforgenetics.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:observationforgenetics.subject", "path": "Observation.subject", "min": 0, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "Observation:observationforgenetics.encounter", "path": "Observation.encounter", "min": 0, "max": "1", "base": { "path": "Observation.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ] }, { "id": "Observation:observationforgenetics.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:observationforgenetics.issued", "path": "Observation.issued", "min": 0, "max": "1", "base": { "path": "Observation.issued", "min": 0, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "Observation:observationforgenetics.performer", "path": "Observation.performer", "min": 0, "max": "*", "base": { "path": "Observation.performer", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" } ], "isSummary": true }, { "id": "Observation:observationforgenetics.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:observationforgenetics.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:observationforgenetics.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:observationforgenetics.comment", "path": "Observation.comment", "min": 0, "max": "1", "base": { "path": "Observation.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observationforgenetics.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:observationforgenetics.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:observationforgenetics.specimen", "path": "Observation.specimen", "min": 0, "max": "1", "base": { "path": "Observation.specimen", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "Observation:observationforgenetics.device", "path": "Observation.device", "min": 0, "max": "1", "base": { "path": "Observation.device", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:observationforgenetics.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "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:observationforgenetics.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observationforgenetics.referenceRange.extension", "path": "Observation.referenceRange.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observationforgenetics.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:observationforgenetics.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:observationforgenetics.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:observationforgenetics.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:observationforgenetics.referenceRange.age", "path": "Observation.referenceRange.age", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.age", "min": 0, "max": "1" }, "type": [ { "code": "Range" } ] }, { "id": "Observation:observationforgenetics.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observationforgenetics.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:observationforgenetics.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observationforgenetics.related.extension", "path": "Observation.related.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observationforgenetics.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:observationforgenetics.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:observationforgenetics.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:observationforgenetics.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:observationforgenetics.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:observationforgenetics.component.extension", "path": "Observation.component.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:observationforgenetics.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:observationforgenetics.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:observationforgenetics.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:observationforgenetics.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:observationforgenetics.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:observationforgenetics.component.referenceRange", "path": "Observation.component.referenceRange", "min": 0, "max": "*", "base": { "path": "Observation.component.referenceRange", "min": 0, "max": "*" }, "contentReference": "#Observation:observationforgenetics.referenceRange" } ] }, "differential": { "element": [ { "id": "Observation:observationforgenetics", "path": "Observation", "name": "ObservationForGenetics", "min": 0, "max": "*" }, { "id": "Observation:observationforgenetics.extension:transcriptreferencesequenceid$observation-geneticsTranscriptReferenceSequenceId", "path": "Observation.extension", "name": "TranscriptReferenceSequenceId", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsTranscriptReferenceSequenceId" } ] }, { "id": "Observation:observationforgenetics.extension:proteinreferencesequenceid$observation-geneticsProteinReferenceSequenceId", "path": "Observation.extension", "name": "ProteinReferenceSequenceId", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsProteinReferenceSequenceId" } ] }, { "id": "Observation:observationforgenetics.extension:dnasequencevariant$observation-geneticsDNASequenceVariant", "path": "Observation.extension", "name": "DNASequenceVariant", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNASequenceVariant" } ] }, { "id": "Observation:observationforgenetics.extension:dnavariantid$observation-geneticsDNAVariantId", "path": "Observation.extension", "name": "DNAVariantId", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNAVariantId" } ] }, { "id": "Observation:observationforgenetics.extension:dnasequencevarianttype$observation-geneticsDNASequenceVariantType", "path": "Observation.extension", "name": "DNASequenceVariantType", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNASequenceVariantType" } ] }, { "id": "Observation:observationforgenetics.extension:aminoacidchange$observation-geneticsAminoAcidChange", "path": "Observation.extension", "name": "AminoAcidChange", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChange" } ] }, { "id": "Observation:observationforgenetics.extension:aminoacidchangetype$observation-geneticsAminoAcidChangeType", "path": "Observation.extension", "name": "AminoAcidChangeType", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAminoAcidChangeType" } ] }, { "id": "Observation:observationforgenetics.extension:gene$observation-geneticsGene", "path": "Observation.extension", "name": "Gene", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsGene" } ] }, { "id": "Observation:observationforgenetics.extension:dnaregionname$observation-geneticsDNARegionName", "path": "Observation.extension", "name": "DNARegionName", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsDNARegionName" } ] }, { "id": "Observation:observationforgenetics.extension:allelename$observation-geneticsAlleleName", "path": "Observation.extension", "name": "AlleleName", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAlleleName" } ] }, { "id": "Observation:observationforgenetics.extension:allelicstate$observation-geneticsAllelicState", "path": "Observation.extension", "name": "AllelicState", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAllelicState" } ] }, { "id": "Observation:observationforgenetics.extension:allelicfrequency$observation-geneticsAllelicFrequency", "path": "Observation.extension", "name": "AllelicFrequency", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsAllelicFrequency" } ] }, { "id": "Observation:observationforgenetics.extension:copynumberevent$observation-geneticsCopyNumberEvent", "path": "Observation.extension", "name": "CopyNumberEvent", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsCopyNumberEvent" } ] }, { "id": "Observation:observationforgenetics.extension:genomicsourceclass$observation-geneticsGenomicSourceClass", "path": "Observation.extension", "name": "GenomicSourceClass", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsGenomicSourceClass" } ] }, { "id": "Observation:observationforgenetics.extension:phaseset$observation-geneticsPhaseSet", "path": "Observation.extension", "name": "PhaseSet", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsPhaseSet" } ] }, { "id": "Observation:observationforgenetics.extension:sequence$observation-geneticsSequence", "path": "Observation.extension", "name": "Sequence", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/observation-geneticsSequence" } ] }, { "id": "Observation:observationforgenetics.extension:interpretation$observation-geneticsInterpretation", "path": "Observation.extension", "name": "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\r\r1. One status in `Observation.status`\r2. One category in `Observation.category` which must have:\r - a fixed\r `Observation.category.coding.system`=**“http://hl7.org/fhir/observation-category”**\r - a fixed `Observation.category.coding.code`=**“vital-signs”**\r\r3. One code in `Observation.code` which must have\r - a fixed `Observation.code.coding.system`=**“http://loinc.org”**\r - a LOINC code in `Observation.code.coding.code` which must be taken\r from the [Vital Signs] valueset\r - Other additional codes are allowed - e.g. method specific LOINC\r Codes, SNOMED CT concepts, system specific codes. All codes\r SHALL have an system value\r\r4. Either one `Observation.valueQuantity` or, if there is no value,\r one code in `Observation.DataAbsentReason` (Note: See the comments\r in the table for exceptions)\r - Each Observation.valueQuantity must have:\r - One numeric value in `Observation.valueQuantity.value`\r - a fixed\r `Observation.valueQuantity.system`=**“http://unitsofmeasure.org”**\r - a UCUM unit code in `Observation.valueQuantity.code` which must be taken\r from the [Vital Signs Units] valueset\r - Observation.DataAbsentReason should be taken from the [Observation\r Value Absent Reason] Valueset\r\r5. When using a panel code to group component observations (Note: See\r the comments regarding blood pressure in the table), one or more\r `Observation.component.code` each of which must have:\r - a fixed\r `Observation.component.code.coding.system`=**“http://loinc.org”**\r - a LOINC code in `Observation.component.code.coding.code` taken\r from the column labeled “LOINC code” in the table\r\r6. Either one `Observation.component.valueQuantity` or, if there is\r no value, one code in `Observation.component.DataAbsentReason`\r - Each Observation.component.valueQuantity must have:\r - One numeric value in\r `Observation.component.valueQuantity.value`\r - a fixed\r `Observation.component.valueQuantity.system`=**“http://unitsofmeasure.org”**\r - a UCUM unit code in\r `Observation.component.valueQuantity.code` which must be taken\r from the [Vital Signs Units] valueset\r - The `Observation.component.DataAbsentReason.code.coding.code` should be taken from the [Observation\r Value Absent Reason] Valueset\r\r7. When using a panel code to group observations, one or more reference\r to Observations in `Observation.related.target`(Note: See the\r comments for Vital Signs in the table)\r - a fixed `Observation.related.type`=**“has-member”**\r\r8. One patient in `Observation.subject`\r9. A date and time in `Observation.effectiveDateTime` or `Observation.effectivePeriod`\r\r [Observation Value Absent Reason]: valueset-observation-valueabsentreason.html\r [Vital Signs Units]:valueset-ucum-vitals-common.html\r [Vital Signs]:valueset-observation-vitalsignresult.html" } ], "url": "http://hl7.org/fhir/StructureDefinition/vitalsigns", "name": "Vital Signs Profile", "display": "VitalSigns", "status": "draft", "date": "2016-03-25", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:vitalsigns", "path": "Observation", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" }, { "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')])))" } ] }, { "id": "Observation:vitalsigns.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:vitalsigns.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:vitalsigns.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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", "description": "Codes providing the status of an observation.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-status" } } }, { "id": "Observation:vitalsigns.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:vitalsigns.category.id", "path": "Observation.category.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.category.extension", "path": "Observation.category.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.category.coding", "path": "Observation.category.coding", "min": 1, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.category.coding.id", "path": "Observation.category.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.category.coding.extension", "path": "Observation.category.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.category.coding.system", "path": "Observation.category.coding.system", "min": 1, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "fixedUri": "http://hl7.org/fhir/observation-category", "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.category.coding.version", "path": "Observation.category.coding.version", "min": 0, "max": "1", "base": { "path": "Coding.version", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:vitalsigns.category.coding.code", "path": "Observation.category.coding.code", "min": 1, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "vital-signs", "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.category.coding.display", "path": "Observation.category.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:vitalsigns.category.coding.userSelected", "path": "Observation.category.coding.userSelected", "min": 0, "max": "1", "base": { "path": "Coding.userSelected", "min": 0, "max": "1" }, "type": [ { "code": "boolean" } ], "isSummary": true }, { "id": "Observation:vitalsigns.category.text", "path": "Observation.category.text", "min": 0, "max": "1", "base": { "path": "CodeableConcept.text", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "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": "required", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalsigns.code.id", "path": "Observation.code.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.code.extension", "path": "Observation.code.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.code.coding", "path": "Observation.code.coding", "min": 1, "max": "*", "base": { "path": "CodeableConcept.coding", "min": 0, "max": "*" }, "type": [ { "code": "Coding" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.code.coding.id", "path": "Observation.code.coding.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.code.coding.extension", "path": "Observation.code.coding.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.code.coding.system", "path": "Observation.code.coding.system", "min": 1, "max": "1", "base": { "path": "Coding.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.code.coding.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:vitalsigns.code.coding.code", "path": "Observation.code.coding.code", "min": 1, "max": "1", "base": { "path": "Coding.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.code.coding.display", "path": "Observation.code.coding.display", "min": 0, "max": "1", "base": { "path": "Coding.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.code.coding.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:vitalsigns.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:vitalsigns.subject", "path": "Observation.subject", "min": 1, "max": "1", "base": { "path": "Observation.subject", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "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", "profile": "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" } ], "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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": "*" }, "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": 0, "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", "description": "Codes specifying why the result (Observation.value[x]) is missing.", "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/DeviceMetric" } ] }, { "id": "Observation:vitalsigns.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "constraint": [ { "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))" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:vitalsigns.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:vitalsigns.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:vitalsigns.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:vitalsigns.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:vitalsigns.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:vitalsigns.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:vitalsigns.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:vitalsigns.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:vitalsigns.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:vitalsigns.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: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" ], "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: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", "name": "VitalSigns", "min": 0, "max": "*" }, { "id": "Observation:vitalsigns.status", "path": "Observation.status", "mustSupport": true }, { "id": "Observation:vitalsigns.category", "path": "Observation.category" }, { "id": "Observation:vitalsigns.category.coding", "path": "Observation.category.coding", "min": 1, "max": "*", "mustSupport": true }, { "id": "Observation:vitalsigns.category.coding.system", "path": "Observation.category.coding.system", "min": 1, "max": "1", "type": [ { "code": "uri" } ], "fixedUri": "http://hl7.org/fhir/observation-category", "mustSupport": true }, { "id": "Observation:vitalsigns.category.coding.code", "path": "Observation.category.coding.code", "min": 1, "max": "1", "type": [ { "code": "code" } ], "fixedCode": "vital-signs", "mustSupport": true }, { "id": "Observation:vitalsigns.code", "path": "Observation.code", "mustSupport": true, "binding": { "strength": "required", "description": "This identifies the vital sign result type.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-vitalsignresult" } } }, { "id": "Observation:vitalsigns.code.coding", "path": "Observation.code.coding", "min": 1, "max": "*", "mustSupport": true }, { "id": "Observation:vitalsigns.code.coding.system", "path": "Observation.code.coding.system", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:vitalsigns.code.coding.code", "path": "Observation.code.coding.code", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:vitalsigns.code.coding.display", "path": "Observation.code.coding.display", "mustSupport": true }, { "id": "Observation:vitalsigns.subject", "path": "Observation.subject", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:vitalsigns.effective[x]", "path": "Observation.effective[x]", "min": 1, "max": "1", "mustSupport": true }, { "id": "Observation:vitalsigns.valueQuantity", "path": "Observation.valueQuantity", "type": [ { "code": "Quantity" } ], "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", "mustSupport": true }, { "id": "Observation:vitalsigns.valueQuantity.unit", "path": "Observation.valueQuantity.unit", "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", "mustSupport": true }, { "id": "Observation:vitalsigns.dataAbsentReason", "path": "Observation.dataAbsentReason", "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange", "path": "Observation.referenceRange", "min": 0, "max": "1", "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.low", "path": "Observation.referenceRange.low", "min": 0, "max": "1", "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "type": [ { "code": "decimal" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.high", "path": "Observation.referenceRange.high", "min": 0, "max": "1", "type": [ { "code": "Quantity", "profile": "http://hl7.org/fhir/StructureDefinition/SimpleQuantity" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "type": [ { "code": "decimal" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "max": "1", "type": [ { "code": "uri" } ], "fixedUri": "http://unitsofmeasure.org", "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "type": [ { "code": "code" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "type": [ { "code": "CodeableConcept" } ], "mustSupport": true }, { "id": "Observation:vitalsigns.referenceRange.text", "path": "Observation.referenceRange.text", "min": 0, "max": "1", "type": [ { "code": "string" } ], "mustSupport": true } ] } } }, { "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bodyweight.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:bodyweight.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bodyweight.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyweight.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyweight.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:bodyweight.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyweight.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:bodyweight.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bodyweight.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:bodyweight.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:bodyweight.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bodyweight.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:bodyweight.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: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" ], "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: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", "name": "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", "name": "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:resprate.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:resprate.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:resprate.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:resprate.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:resprate.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:resprate.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:resprate.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:resprate.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:resprate.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:resprate.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:resprate.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:resprate.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:resprate.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: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" ], "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: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", "name": "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", "name": "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:heartrate.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:heartrate.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:heartrate.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:heartrate.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:heartrate.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:heartrate.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:heartrate.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:heartrate.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:heartrate.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:heartrate.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:heartrate.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:heartrate.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:heartrate.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: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" ], "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: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", "name": "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", "name": "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bodytemp.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:bodytemp.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bodytemp.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodytemp.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodytemp.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:bodytemp.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodytemp.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:bodytemp.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bodytemp.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:bodytemp.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:bodytemp.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bodytemp.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:bodytemp.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: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" ], "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: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", "name": "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", "name": "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bodyheight.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:bodyheight.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bodyheight.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bodyheight.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bodyheight.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:bodyheight.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bodyheight.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:bodyheight.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bodyheight.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:bodyheight.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:bodyheight.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bodyheight.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:bodyheight.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: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" ], "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: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", "name": "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", "name": "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/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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:headcircum.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:headcircum.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:headcircum.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:headcircum.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:headcircum.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:headcircum.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:headcircum.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:headcircum.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:headcircum.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:headcircum.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:headcircum.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:headcircum.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:headcircum.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: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" ], "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: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", "name": "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", "name": "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": "9843-4" }, { "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:oxygensat.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:oxygensat.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:oxygensat.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:oxygensat.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:oxygensat.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:oxygensat.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:oxygensat.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:oxygensat.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:oxygensat.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:oxygensat.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:oxygensat.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:oxygensat.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:oxygensat.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: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" ], "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: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", "name": "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", "name": "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bmi.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:bmi.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bmi.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bmi.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bmi.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:bmi.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bmi.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:bmi.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bmi.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:bmi.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:bmi.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bmi.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:bmi.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: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" ], "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: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", "name": "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", "name": "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:mbp.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:mbp.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:mbp.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:mbp.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:mbp.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:mbp.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:mbp.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:mbp.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:mbp.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:mbp.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "id": "Observation:mbp.component", "path": "Observation.component", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:mbp.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "id": "Observation:mbp.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: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" ], "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: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", "name": "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", "name": "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 id.count()", "xpath": "@value|f:*|h:div" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bp.referenceRange.low.id", "path": "Observation.referenceRange.low.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.referenceRange.low.extension", "path": "Observation.referenceRange.low.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.referenceRange.low.value", "path": "Observation.referenceRange.low.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.referenceRange.low.comparator", "path": "Observation.referenceRange.low.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:bp.referenceRange.low.unit", "path": "Observation.referenceRange.low.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.referenceRange.low.system", "path": "Observation.referenceRange.low.system", "min": 0, "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.referenceRange.low.code", "path": "Observation.referenceRange.low.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "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": [ "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ], "mustSupport": true }, { "id": "Observation:bp.referenceRange.high.id", "path": "Observation.referenceRange.high.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Observation:bp.referenceRange.high.extension", "path": "Observation.referenceRange.high.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Observation:bp.referenceRange.high.value", "path": "Observation.referenceRange.high.value", "min": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.referenceRange.high.comparator", "path": "Observation.referenceRange.high.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:bp.referenceRange.high.unit", "path": "Observation.referenceRange.high.unit", "min": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.referenceRange.high.system", "path": "Observation.referenceRange.high.system", "min": 0, "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.referenceRange.high.code", "path": "Observation.referenceRange.high.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "mustSupport": true, "isSummary": true }, { "id": "Observation:bp.referenceRange.meaning", "path": "Observation.referenceRange.meaning", "min": 0, "max": "1", "base": { "path": "Observation.referenceRange.meaning", "min": 0, "max": "*" }, "type": [ { "code": "CodeableConcept" } ], "mustSupport": true, "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" } ], "mustSupport": true }, { "id": "Observation:bp.related", "path": "Observation.related", "min": 0, "max": "*", "base": { "path": "Observation.related", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Observation:bp.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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": 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:bp.related.target", "path": "Observation.related.target", "min": 1, "max": "1", "base": { "path": "Observation.related.target", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Sequence" } ] }, { "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" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp", "path": "Observation.component", "name": "SystolicBP", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "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": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "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": "*" }, "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", "name": "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": "*" }, "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" } ], "isSummary": true }, { "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": "*" }, "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": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "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": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 0, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "condition": [ "qty-3" ], "isSummary": true }, { "id": "Observation:bp.component:systolicbp.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]", "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" ], "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: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", "name": "DiastolicBP", "min": 0, "max": "*", "base": { "path": "Observation.component", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "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": "*" }, "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" } ], "isSummary": true, "binding": { "strength": "example", "description": "Codes identifying names of simple observations.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/observation-codes" } } }, { "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": "*" }, "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", "name": "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": "*" }, "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" } ], "isSummary": true }, { "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": "*" }, "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": 0, "max": "1", "base": { "path": "Quantity.value", "min": 0, "max": "1" }, "type": [ { "code": "decimal" } ], "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": 0, "max": "1", "base": { "path": "Quantity.unit", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.system", "path": "Observation.component.valueQuantity.system", "min": 0, "max": "1", "base": { "path": "Quantity.system", "min": 0, "max": "1" }, "type": [ { "code": "uri" } ], "condition": [ "qty-3" ], "isSummary": true }, { "id": "Observation:bp.component:diastolicbp.valueQuantity.code", "path": "Observation.component.valueQuantity.code", "min": 0, "max": "1", "base": { "path": "Quantity.code", "min": 0, "max": "1" }, "type": [ { "code": "code" } ], "fixedCode": "mm[Hg]", "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" ], "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: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", "name": "BP", "min": 0, "max": "*" }, { "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", "name": "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", "name": "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", "name": "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", "name": "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", "name": "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/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/lipidprofile", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "DiagnosticReport", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticReport:lipidprofile", "path": "DiagnosticReport", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "DiagnosticReport:lipidprofile.id", "path": "DiagnosticReport.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.meta", "path": "DiagnosticReport.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.implicitRules", "path": "DiagnosticReport.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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": 1, "max": "1", "base": { "path": "DiagnosticReport.subject", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.effective[x]", "path": "DiagnosticReport.effective[x]", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.effective[x]", "min": 1, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.issued", "path": "DiagnosticReport.issued", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.issued", "min": 1, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.performer", "path": "DiagnosticReport.performer", "min": 1, "max": "*", "base": { "path": "DiagnosticReport.performer", "min": 1, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" } ] }, { "id": "DiagnosticReport:lipidprofile.result:cholesterol", "path": "DiagnosticReport.result", "name": "Cholesterol", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/cholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:triglyceride", "path": "DiagnosticReport.result", "name": "Triglyceride", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/triglyceride" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:hdlcholesterol", "path": "DiagnosticReport.result", "name": "HDLCholesterol", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/hdlcholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:ldlcholesterol", "path": "DiagnosticReport.result", "name": "LDLCholesterol", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/ImagingStudy" }, { "code": "Reference", "profile": "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" } ], "isSummary": true }, { "id": "DiagnosticReport:lipidprofile.image.id", "path": "DiagnosticReport.image.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "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", "name": "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", "name": "Cholesterol", "min": 1, "max": "1", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/cholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:triglyceride", "path": "DiagnosticReport.result", "name": "Triglyceride", "min": 1, "max": "1", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/triglyceride" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:hdlcholesterol", "path": "DiagnosticReport.result", "name": "HDLCholesterol", "min": 1, "max": "1", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/hdlcholesterol" } ], "mustSupport": true }, { "id": "DiagnosticReport:lipidprofile.result:ldlcholesterol", "path": "DiagnosticReport.result", "name": "LDLCholesterol", "min": 0, "max": "1", "type": [ { "code": "Reference", "profile": "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", "url": "http://hl7.org/fhir/StructureDefinition/cholesterol", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:cholesterol", "path": "Observation", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" }, { "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')])))" } ] }, { "id": "Observation:cholesterol.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:cholesterol.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:cholesterol.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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": "*" }, "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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": "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))" } ], "mustSupport": true }, { "id": "Observation:cholesterol.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ] }, { "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" } ], "isSummary": true }, { "id": "Observation:cholesterol.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "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" } ], "isSummary": true }, { "id": "Observation:cholesterol.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "name": "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", "url": "http://hl7.org/fhir/StructureDefinition/triglyceride", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:triglyceride", "path": "Observation", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" }, { "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')])))" } ] }, { "id": "Observation:triglyceride.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:triglyceride.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:triglyceride.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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": "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))" } ], "mustSupport": true }, { "id": "Observation:triglyceride.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" } ], "isSummary": true }, { "id": "Observation:triglyceride.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "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" } ], "isSummary": true }, { "id": "Observation:triglyceride.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "name": "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", "url": "http://hl7.org/fhir/StructureDefinition/hdlcholesterol", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:hdlcholesterol", "path": "Observation", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" }, { "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')])))" } ] }, { "id": "Observation:hdlcholesterol.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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": "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))" } ], "mustSupport": true }, { "id": "Observation:hdlcholesterol.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ] }, { "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" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "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" } ], "isSummary": true }, { "id": "Observation:hdlcholesterol.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "name": "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", "url": "http://hl7.org/fhir/StructureDefinition/ldlcholesterol", "name": "Example Lipid Profile", "status": "draft", "date": "2012-05-12", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "Observation", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Observation", "derivation": "constraint", "snapshot": { "element": [ { "id": "Observation:ldlcholesterol", "path": "Observation", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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)" }, { "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')])))" } ] }, { "id": "Observation:ldlcholesterol.id", "path": "Observation.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.meta", "path": "Observation.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.implicitRules", "path": "Observation.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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$lipid-report-ldl-chol-calculated", "path": "Observation.extension", "name": "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" }, { "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')])" } ] }, { "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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": "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))" } ], "mustSupport": true }, { "id": "Observation:ldlcholesterol.referenceRange.id", "path": "Observation.referenceRange.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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" }, { "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)" }, { "key": "sqty-1", "severity": "error", "human": "The comparator is not used on a SimpleQuantity", "expression": "comparator.empty()", "xpath": "not(exists(f:comparator))" } ] }, { "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" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.related.id", "path": "Observation.related.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/QuestionnaireResponse" }, { "code": "Reference", "profile": "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" } ], "isSummary": true }, { "id": "Observation:ldlcholesterol.component.id", "path": "Observation.component.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "name": "LDLCholesterol", "min": 1, "max": "1" }, { "id": "Observation:ldlcholesterol.extension:ldlcalculated$lipid-report-ldl-chol-calculated", "path": "Observation.extension", "name": "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/reportforgenetics", "resource": { "resourceType": "StructureDefinition", "id": "reportforgenetics", "url": "http://hl7.org/fhir/StructureDefinition/reportforgenetics", "name": "Diagnostic Report for Genetics", "status": "draft", "date": "2015-10-09", "fhirVersion": "1.6.0", "kind": "resource", "abstract": false, "type": "DiagnosticReport", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticReport:reportforgenetics", "path": "DiagnosticReport", "name": "ReportForGenetics", "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "DiagnosticReport:reportforgenetics.id", "path": "DiagnosticReport.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.meta", "path": "DiagnosticReport.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.implicitRules", "path": "DiagnosticReport.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "isModifier": true, "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.language", "path": "DiagnosticReport.language", "min": 0, "max": "1", "base": { "path": "Resource.language", "min": 0, "max": "*" }, "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:reportforgenetics.text", "path": "DiagnosticReport.text", "min": 0, "max": "1", "base": { "path": "DomainResource.text", "min": 0, "max": "*" }, "type": [ { "code": "Narrative" } ], "condition": [ "dom-1" ] }, { "id": "DiagnosticReport:reportforgenetics.contained", "path": "DiagnosticReport.contained", "min": 0, "max": "*", "base": { "path": "DomainResource.contained", "min": 0, "max": "*" }, "type": [ { "code": "Resource" } ] }, { "id": "DiagnosticReport:reportforgenetics.extension", "path": "DiagnosticReport.extension", "slicing": { "id": "90", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:reportforgenetics.extension:assessedcondition$DiagnosticReport-geneticsAssessedCondition", "path": "DiagnosticReport.extension", "name": "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" }, { "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')])" } ] }, { "id": "DiagnosticReport:reportforgenetics.extension:familymemberhistory$DiagnosticReport-geneticsFamilyMemberHistory", "path": "DiagnosticReport.extension", "name": "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" }, { "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')])" } ] }, { "id": "DiagnosticReport:reportforgenetics.extension:analysis$DiagnosticReport-geneticsAnalysis", "path": "DiagnosticReport.extension", "name": "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" }, { "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')])" } ] }, { "id": "DiagnosticReport:reportforgenetics.modifierExtension", "path": "DiagnosticReport.modifierExtension", "min": 0, "max": "*", "base": { "path": "DomainResource.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true }, { "id": "DiagnosticReport:reportforgenetics.identifier", "path": "DiagnosticReport.identifier", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.identifier", "min": 0, "max": "*" }, "type": [ { "code": "Identifier" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.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:reportforgenetics.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:reportforgenetics.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:reportforgenetics.subject", "path": "DiagnosticReport.subject", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.subject", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.encounter", "path": "DiagnosticReport.encounter", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.encounter", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.effective[x]", "path": "DiagnosticReport.effective[x]", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.effective[x]", "min": 1, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.issued", "path": "DiagnosticReport.issued", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.issued", "min": 1, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.performer", "path": "DiagnosticReport.performer", "min": 1, "max": "*", "base": { "path": "DiagnosticReport.performer", "min": 1, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.request", "path": "DiagnosticReport.request", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.request", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/ReferralRequest" } ] }, { "id": "DiagnosticReport:reportforgenetics.specimen", "path": "DiagnosticReport.specimen", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.specimen", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Specimen" } ] }, { "id": "DiagnosticReport:reportforgenetics.result", "path": "DiagnosticReport.result", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.result", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Observation" } ] }, { "id": "DiagnosticReport:reportforgenetics.imagingStudy", "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.imagingStudy", "min": 0, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/ImagingStudy" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/ImagingManifest" } ] }, { "id": "DiagnosticReport:reportforgenetics.image", "path": "DiagnosticReport.image", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.image", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.image.id", "path": "DiagnosticReport.image.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:reportforgenetics.image.extension", "path": "DiagnosticReport.image.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:reportforgenetics.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:reportforgenetics.image.comment", "path": "DiagnosticReport.image.comment", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.image.comment", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:reportforgenetics.image.link", "path": "DiagnosticReport.image.link", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.image.link", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Media" } ], "isSummary": true }, { "id": "DiagnosticReport:reportforgenetics.conclusion", "path": "DiagnosticReport.conclusion", "min": 0, "max": "1", "base": { "path": "DiagnosticReport.conclusion", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "id": "DiagnosticReport:reportforgenetics.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:reportforgenetics.presentedForm", "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*", "base": { "path": "DiagnosticReport.presentedForm", "min": 0, "max": "*" }, "type": [ { "code": "Attachment" } ] } ] }, "differential": { "element": [ { "id": "DiagnosticReport:reportforgenetics", "path": "DiagnosticReport", "name": "ReportForGenetics", "min": 0, "max": "*" }, { "id": "DiagnosticReport:reportforgenetics.extension:assessedcondition$DiagnosticReport-geneticsAssessedCondition", "path": "DiagnosticReport.extension", "name": "AssessedCondition", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAssessedCondition" } ] }, { "id": "DiagnosticReport:reportforgenetics.extension:familymemberhistory$DiagnosticReport-geneticsFamilyMemberHistory", "path": "DiagnosticReport.extension", "name": "FamilyMemberHistory", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsFamilyMemberHistory" } ] }, { "id": "DiagnosticReport:reportforgenetics.extension:analysis$DiagnosticReport-geneticsAnalysis", "path": "DiagnosticReport.extension", "name": "Analysis", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport-geneticsAnalysis" } ] }, { "id": "DiagnosticReport:reportforgenetics.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.6.0", "kind": "resource", "abstract": false, "type": "DiagnosticReport", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/DiagnosticReport", "derivation": "constraint", "snapshot": { "element": [ { "id": "DiagnosticReport:hlaresult", "path": "DiagnosticReport", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "DiagnosticReport:hlaresult.id", "path": "DiagnosticReport.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.meta", "path": "DiagnosticReport.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.implicitRules", "path": "DiagnosticReport.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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": "91", "discriminator": [ "url" ], "ordered": false, "rules": "open" }, "min": 0, "max": "*", "base": { "path": "DomainResource.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "DiagnosticReport:hlaresult.extension:alleledatabase$hla-genotyping-resultsAlleleDatabase", "path": "DiagnosticReport.extension", "name": "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" }, { "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')])" } ] }, { "id": "DiagnosticReport:hlaresult.extension:glstring$hla-genotyping-resultsGlstring", "path": "DiagnosticReport.extension", "name": "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" }, { "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')])" } ] }, { "id": "DiagnosticReport:hlaresult.extension:haploid$hla-genotyping-resultsHaploid", "path": "DiagnosticReport.extension", "name": "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" }, { "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')])" } ] }, { "id": "DiagnosticReport:hlaresult.extension:method$hla-genotyping-resultsMethod", "path": "DiagnosticReport.extension", "name": "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" }, { "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')])" } ] }, { "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": 1, "max": "1", "base": { "path": "DiagnosticReport.subject", "min": 1, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Encounter" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.effective[x]", "path": "DiagnosticReport.effective[x]", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.effective[x]", "min": 1, "max": "1" }, "type": [ { "code": "dateTime" }, { "code": "Period" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.issued", "path": "DiagnosticReport.issued", "min": 1, "max": "1", "base": { "path": "DiagnosticReport.issued", "min": 1, "max": "1" }, "type": [ { "code": "instant" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.performer", "path": "DiagnosticReport.performer", "min": 1, "max": "*", "base": { "path": "DiagnosticReport.performer", "min": 1, "max": "*" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/DiagnosticRequest" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/ProcedureRequest" }, { "code": "Reference", "profile": "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", "profile": "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", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/ImagingStudy" }, { "code": "Reference", "profile": "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" } ], "isSummary": true }, { "id": "DiagnosticReport:hlaresult.image.id", "path": "DiagnosticReport.image.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "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", "name": "HLAResult", "min": 0, "max": "*" }, { "id": "DiagnosticReport:hlaresult.extension:alleledatabase$hla-genotyping-resultsAlleleDatabase", "path": "DiagnosticReport.extension", "name": "AlleleDatabase", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsAlleleDatabase" } ] }, { "id": "DiagnosticReport:hlaresult.extension:glstring$hla-genotyping-resultsGlstring", "path": "DiagnosticReport.extension", "name": "Glstring", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsGlstring" } ] }, { "id": "DiagnosticReport:hlaresult.extension:haploid$hla-genotyping-resultsHaploid", "path": "DiagnosticReport.extension", "name": "Haploid", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/hla-genotyping-resultsHaploid" } ] }, { "id": "DiagnosticReport:hlaresult.extension:method$hla-genotyping-resultsMethod", "path": "DiagnosticReport.extension", "name": "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.6.0", "kind": "resource", "abstract": false, "type": "Composition", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Composition", "derivation": "constraint", "snapshot": { "element": [ { "id": "Composition:clinicaldocument", "path": "Composition", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "Composition:clinicaldocument.id", "path": "Composition.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.meta", "path": "Composition.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.implicitRules", "path": "Composition.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.attester.id", "path": "Composition.attester.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "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", "profile": "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" } ], "isSummary": true }, { "id": "Composition:clinicaldocument.event.id", "path": "Composition.event.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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", "profile": "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", "profile": "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": "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": "*" }, "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", "profile": "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", "name": "ClinicalDocument", "min": 0, "max": "*" }, { "id": "Composition:clinicaldocument.subject", "path": "Composition.subject", "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Group" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "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.6.0", "kind": "resource", "abstract": false, "type": "ElementDefinition", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/ElementDefinition", "derivation": "constraint", "snapshot": { "element": [ { "id": "ElementDefinition:elementdefinition-de", "path": "ElementDefinition", "name": "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" }, { "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)" }, { "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)))" }, { "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)" }, { "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)" }, { "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')" }, { "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')]))" }, { "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))" }, { "key": "eld-13", "severity": "error", "human": "Types must be unique by the combination of code and profile", "expression": "type.select(code&profile).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]))" }, { "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))" } ] }, { "id": "ElementDefinition:elementdefinition-de.id", "path": "ElementDefinition.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "ElementDefinition:elementdefinition-de.extension", "path": "ElementDefinition.extension", "slicing": { "id": "92", "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$elementdefinition-question", "path": "ElementDefinition.extension", "name": "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" }, { "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')])" } ] }, { "id": "ElementDefinition:elementdefinition-de.extension:allowedunits$elementdefinition-allowedUnits", "path": "ElementDefinition.extension", "name": "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" }, { "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')])" } ] }, { "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.name", "path": "ElementDefinition.name", "min": 0, "max": "1", "base": { "path": "ElementDefinition.name", "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": "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)" } ], "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": "*" }, "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" } ], "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": "*" }, "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": "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'])" } ], "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": "*" }, "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": "code" } ], "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[x]", "path": "ElementDefinition.example[x]", "min": 0, "max": "1", "base": { "path": "ElementDefinition.example[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" } ], "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" } ], "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": "*" }, "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": 0, "max": "1", "base": { "path": "ElementDefinition.constraint.expression", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.constraint.xpath", "path": "ElementDefinition.constraint.xpath", "min": 1, "max": "1", "base": { "path": "ElementDefinition.constraint.xpath", "min": 1, "max": "1" }, "type": [ { "code": "string" } ], "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": "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)" } ], "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": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/ValueSet" } ], "condition": [ "eld-10", "eld-12" ], "constraint": [ { "key": "eld-12", "severity": "error", "human": "URI SHALL start with http:// or https:// urn:", "expression": "startsWith('http:') or startsWith('https') or startsWith('urn:')", "xpath": "starts-with(string(@value), 'http:') or starts-with(string(@value), 'https:') or starts-with(string(@value), 'urn:')" } ], "isSummary": true }, { "id": "ElementDefinition:elementdefinition-de.mapping", "path": "ElementDefinition.mapping", "min": 0, "max": "*", "base": { "path": "ElementDefinition.mapping", "min": 0, "max": "*" }, "type": [ { "code": "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": "*" }, "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", "name": "elementdefinition-de", "min": 0, "max": "*" }, { "id": "ElementDefinition:elementdefinition-de.extension:question$elementdefinition-question", "path": "ElementDefinition.extension", "name": "Question", "min": 0, "max": "*", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/elementdefinition-question" } ] }, { "id": "ElementDefinition:elementdefinition-de.extension:allowedunits$elementdefinition-allowedUnits", "path": "ElementDefinition.extension", "name": "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.6.0", "kind": "resource", "abstract": false, "type": "AuditEvent", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/AuditEvent", "derivation": "constraint", "snapshot": { "element": [ { "id": "AuditEvent:ehrsrle-auditevent", "path": "AuditEvent", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "AuditEvent:ehrsrle-auditevent.id", "path": "AuditEvent.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.meta", "path": "AuditEvent.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "AuditEvent:ehrsrle-auditevent.implicitRules", "path": "AuditEvent.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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": "Coding" } ], "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" } ], "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": "*" }, "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", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "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", "profile": "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" } ], "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": "*" }, "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": "Coding" } ], "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" } ], "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": "*" }, "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": "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))" } ], "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": "*" }, "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", "profile": "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" } ] }, { "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": "*" }, "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", "name": "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.6.0", "kind": "resource", "abstract": false, "type": "Provenance", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Provenance", "derivation": "constraint", "snapshot": { "element": [ { "id": "Provenance:ehrsrle-provenance", "path": "Provenance", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" } ] }, { "id": "Provenance:ehrsrle-provenance.id", "path": "Provenance.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.meta", "path": "Provenance.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.implicitRules", "path": "Provenance.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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", "profile": "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, "isSummary": 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, "isSummary": 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, "isSummary": 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", "profile": "http://hl7.org/fhir/StructureDefinition/Location" } ], "mustSupport": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.policy", "path": "Provenance.policy", "min": 0, "max": "*", "base": { "path": "Provenance.policy", "min": 0, "max": "*" }, "type": [ { "code": "uri" } ], "mustSupport": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent", "path": "Provenance.agent", "min": 1, "max": "*", "base": { "path": "Provenance.agent", "min": 1, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "mustSupport": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent.id", "path": "Provenance.agent.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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.actor", "path": "Provenance.agent.actor", "min": 0, "max": "1", "base": { "path": "Provenance.agent.actor", "min": 0, "max": "1" }, "type": [ { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Practitioner" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/RelatedPerson" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Patient" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Device" }, { "code": "Reference", "profile": "http://hl7.org/fhir/StructureDefinition/Organization" } ], "mustSupport": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent.userId", "path": "Provenance.agent.userId", "min": 0, "max": "1", "base": { "path": "Provenance.agent.userId", "min": 0, "max": "1" }, "type": [ { "code": "Identifier" } ], "mustSupport": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent.relatedAgent", "path": "Provenance.agent.relatedAgent", "min": 0, "max": "*", "base": { "path": "Provenance.agent.relatedAgent", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent.relatedAgent.id", "path": "Provenance.agent.relatedAgent.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Provenance:ehrsrle-provenance.agent.relatedAgent.extension", "path": "Provenance.agent.relatedAgent.extension", "min": 0, "max": "*", "base": { "path": "Element.extension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ] }, { "id": "Provenance:ehrsrle-provenance.agent.relatedAgent.modifierExtension", "path": "Provenance.agent.relatedAgent.modifierExtension", "min": 0, "max": "*", "base": { "path": "BackboneElement.modifierExtension", "min": 0, "max": "*" }, "type": [ { "code": "Extension" } ], "isModifier": true, "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.agent.relatedAgent.type", "path": "Provenance.agent.relatedAgent.type", "min": 1, "max": "1", "base": { "path": "Provenance.agent.relatedAgent.type", "min": 1, "max": "1" }, "type": [ { "code": "CodeableConcept" } ], "isSummary": true, "binding": { "strength": "example", "description": "Type of relationship between two provenance agents.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/v3-RoleLinkType" } } }, { "id": "Provenance:ehrsrle-provenance.agent.relatedAgent.target", "path": "Provenance.agent.relatedAgent.target", "min": 1, "max": "1", "base": { "path": "Provenance.agent.relatedAgent.target", "min": 1, "max": "1" }, "type": [ { "code": "uri" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.entity", "path": "Provenance.entity", "min": 0, "max": "*", "base": { "path": "Provenance.entity", "min": 0, "max": "*" }, "type": [ { "code": "BackboneElement" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.entity.id", "path": "Provenance.entity.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "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.type", "path": "Provenance.entity.type", "min": 1, "max": "1", "base": { "path": "Provenance.entity.type", "min": 1, "max": "1" }, "type": [ { "code": "Coding" } ], "isSummary": true, "binding": { "strength": "extensible", "description": "The type of an entity used in an activity.", "valueSetReference": { "reference": "http://hl7.org/fhir/ValueSet/resource-types" } } }, { "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": "uri" } ], "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.entity.display", "path": "Provenance.entity.display", "min": 0, "max": "1", "base": { "path": "Provenance.entity.display", "min": 0, "max": "1" }, "type": [ { "code": "string" } ], "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", "isSummary": true }, { "id": "Provenance:ehrsrle-provenance.signature", "path": "Provenance.signature", "min": 0, "max": "*", "base": { "path": "Provenance.signature", "min": 0, "max": "*" }, "type": [ { "code": "Signature" } ], "mustSupport": true, "isSummary": true } ] }, "differential": { "element": [ { "id": "Provenance:ehrsrle-provenance", "path": "Provenance", "name": "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.6.0", "kind": "resource", "abstract": false, "type": "Questionnaire", "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Questionnaire", "derivation": "constraint", "snapshot": { "element": [ { "id": "Questionnaire:cqif-questionnaire", "path": "Questionnaire", "name": "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)" }, { "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)" }, { "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))" }, { "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))]))" }, { "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))" } ] }, { "id": "Questionnaire:cqif-questionnaire.id", "path": "Questionnaire.id", "min": 0, "max": "1", "base": { "path": "Resource.id", "min": 0, "max": "*" }, "type": [ { "code": "id" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.meta", "path": "Questionnaire.meta", "min": 0, "max": "1", "base": { "path": "Resource.meta", "min": 0, "max": "*" }, "type": [ { "code": "Meta" } ], "isSummary": true }, { "id": "Questionnaire:cqif-questionnaire.implicitRules", "path": "Questionnaire.implicitRules", "min": 0, "max": "1", "base": { "path": "Resource.implicitRules", "min": 0, "max": "*" }, "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": "*" }, "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": "*" }, "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$cqif-basic-library", "path": "Questionnaire.extension", "name": "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" }, { "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')])" } ] }, { "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": "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)" }, { "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')])" }, { "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))" }, { "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)" }, { "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)" }, { "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)" }, { "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)" }, { "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))" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.id", "path": "Questionnaire.item.id", "representation": [ "xmlAttr" ], "min": 0, "max": "1", "base": { "path": "Element.id", "min": 0, "max": "*" }, "type": [ { "code": "string" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension", "path": "Questionnaire.item.extension", "slicing": { "id": "93", "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$cqif-basic-condition", "path": "Questionnaire.item.extension", "name": "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" }, { "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')])" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:initialvalue$cqif-basic-initialValue", "path": "Questionnaire.item.extension", "name": "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" }, { "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')])" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:calculatedvalue$cqif-basic-calculatedValue", "path": "Questionnaire.item.extension", "name": "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" }, { "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')])" } ] }, { "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": 0, "max": "1", "base": { "path": "Questionnaire.item.linkId", "min": 0, "max": "1" }, "type": [ { "code": "string" } ] }, { "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": 1, "max": "1", "base": { "path": "Questionnaire.item.type", "min": 1, "max": "1" }, "type": [ { "code": "code" } ], "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": "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": "*" }, "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", "profile": "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", "profile": "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" ] }, { "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": "*" }, "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", "profile": "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", "name": "CQIF-Questionnaire", "min": 0, "max": "*" }, { "id": "Questionnaire:cqif-questionnaire.extension:library$cqif-basic-library", "path": "Questionnaire.extension", "name": "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$cqif-basic-condition", "path": "Questionnaire.item.extension", "name": "condition", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-condition" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:initialvalue$cqif-basic-initialValue", "path": "Questionnaire.item.extension", "name": "initialValue", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-initialValue" } ] }, { "id": "Questionnaire:cqif-questionnaire.item.extension:calculatedvalue$cqif-basic-calculatedValue", "path": "Questionnaire.item.extension", "name": "calculatedValue", "min": 0, "max": "1", "type": [ { "code": "Extension", "profile": "http://hl7.org/fhir/StructureDefinition/cqif-basic-calculatedValue" } ] } ] } } } ] }