DiagnosticsThis is Snapshot #3 for FHIR R5, released to support Connectathon 32. For a full list of available versions, see the Directory of published versions.
| Orders and Observations Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Device, Encounter, Patient, Practitioner, RelatedPerson |
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example of a multi-select values/answers Observation with individual answers/values as components
@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sct: <http://snomed.info/id/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Observation;
fhir:nodeRole fhir:treeRoot;
fhir:Resource.id [ fhir:value "alcohol-type"]; #
fhir:DomainResource.text [
fhir:Narrative.status [ fhir:value "generated" ];
fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Observation</b><a name=\"alcohol-type\"> </a></p><div style=\"display: inline-block; background-color: #d9e0e7; padding: 6px; margin: 4px; border: 1px solid #8da1b4; border-radius: 5px; line-height: 60%\"><p style=\"margin-bottom: 0px\">Resource Observation "alcohol-type" </p></div><p><b>status</b>: <span title=\" the mandatory quality flags: \">final</span></p><p><b>category</b>: <span title=\" \n Observations are often coded in multiple code systems.\n - LOINC\n - or SNOMED\n -and/or the source system may provides its own "local" code, which may be less or more granular than LOINC.\n In this example there is only local codes\n \">Social History <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"http://terminology.hl7.org/4.0.0/CodeSystem-observation-category.html\">Observation Category Codes</a>#social-history)</span></span></p><p><b>code</b>: Type of alcohol consumed <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (acme-rehab.org#alcohol-type)</span></p><p><b>subject</b>: <a href=\"patient-example.html\">Patient/example: Peter James Chalmers</a> "Peter CHALMERS"</p><p><b>effective</b>: 2014-12-11T04:44:16Z</p><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\" component.code is same as code \">alcohol-type <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (acme-rehab.org#alcohol-type)</span></span></p><p><b>value</b>: <span title=\" coded value using SNONED-CT, could also use a local code here or only text \">Wine <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#35748005 "Wine (substance)")</span></span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\" component.code is same as code \">alcohol-type <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (acme-rehab.org#alcohol-type)</span></span></p><p><b>value</b>: <span title=\" coded value using SNONED-CT, could also use a local code here or only text \">Beer <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#53410008 "Beer (substance)")</span></span></p></blockquote><blockquote><p><b>component</b></p><p><b>code</b>: <span title=\" component.code is same as code \">alcohol-type <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (acme-rehab.org#alcohol-type)</span></span></p><p><b>value</b>: <span title=\" coded value using SNONED-CT, could also use a local code here or only text \">Liquor <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> (<a href=\"https://browser.ihtsdotools.org/\">SNOMED CT</a>#6524003 " Distilled spirits (substance)")</span></span></p></blockquote></div>"
]; # the mandatory quality flags:
fhir:Observation.status [ fhir:value "final"]; #
fhir:Observation.category [
fhir:index 0;
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://terminology.hl7.org/CodeSystem/observation-category" ];
fhir:Coding.code [ fhir:value "social-history" ];
fhir:Coding.display [ fhir:value "Social History" ]
];
fhir:CodeableConcept.text [ fhir:value "Social History" ]
]; #
Observations are often coded in multiple code systems.
- LOINC
- or SNOMED
-and/or the source system may provides its own "local" code, which may be less or more granular than LOINC.
In this example there is only local codes
fhir:Observation.code [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://acme-rehab.org" ];
fhir:Coding.code [ fhir:value "alcohol-type" ];
fhir:Coding.display [ fhir:value "Type of alcohol consumed" ]
]; # Local - unable to identify a proper LOINC code
fhir:CodeableConcept.text [ fhir:value "Type of alcohol consumed" ]
]; #
fhir:Observation.subject [
fhir:Reference.reference [ fhir:value "Patient/example" ];
fhir:Reference.display [ fhir:value "Peter James Chalmers" ]
]; #
fhir:Observation.effectiveDateTime [ fhir:value "2014-12-11T04:44:16Z"^^xsd:dateTime]; #
fhir:Observation.component [
fhir:index 0;
fhir:Observation.component.code [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://acme-rehab.org" ];
fhir:Coding.code [ fhir:value "alcohol-type" ]
] # Local - unable to identify a proper LOINC code
]; # component.code is same as code
fhir:Observation.component.valueCodeableConcept [
fhir:CodeableConcept.coding [
fhir:index 0;
a sct:35748005;
fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
fhir:Coding.code [ fhir:value "35748005" ];
fhir:Coding.display [ fhir:value "Wine (substance)" ]
];
fhir:CodeableConcept.text [ fhir:value "Wine" ]
] # coded value using SNONED-CT, could also use a local code here or only text
], [
fhir:index 1;
fhir:Observation.component.code [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://acme-rehab.org" ];
fhir:Coding.code [ fhir:value "alcohol-type" ]
] # Local - unable to identify a proper LOINC code
]; # component.code is same as code
fhir:Observation.component.valueCodeableConcept [
fhir:CodeableConcept.coding [
fhir:index 0;
a sct:53410008;
fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
fhir:Coding.code [ fhir:value "53410008" ];
fhir:Coding.display [ fhir:value "Beer (substance)" ]
];
fhir:CodeableConcept.text [ fhir:value "Beer" ]
] # coded value using SNONED-CT, could also use a local code here or only text
], [
fhir:index 2;
fhir:Observation.component.code [
fhir:CodeableConcept.coding [
fhir:index 0;
fhir:Coding.system [ fhir:value "http://acme-rehab.org" ];
fhir:Coding.code [ fhir:value "alcohol-type" ]
] # Local - unable to identify a proper LOINC code
]; # component.code is same as code
fhir:Observation.component.valueCodeableConcept [
fhir:CodeableConcept.coding [
fhir:index 0;
a sct:6524003;
fhir:Coding.system [ fhir:value "http://snomed.info/sct" ];
fhir:Coding.code [ fhir:value "6524003" ];
fhir:Coding.display [ fhir:value " Distilled spirits (substance)" ]
];
fhir:CodeableConcept.text [ fhir:value "Liquor" ]
] # coded value using SNONED-CT, could also use a local code here or only text
]] . # When the code is the same as component.code the value element must be empty per invariant obs-7
, Using components since multi-select values/answers share the same attributes (such as id, performer, effective date, status, comment.. , answer 1
# - ontology header ------------------------------------------------------------
[a owl:Ontology;
owl:imports fhir:fhir.ttl] .
# -------------------------------------------------------------------------------------
Usage note: every effort has been made to ensure that the examples are correct and useful, but they are not a normative part of the specification.
FHIR ®© HL7.org 2011+. FHIR R5 Ballot hl7.fhir.core#5.0.0-snapshot3 generated on Wed, Dec 14, 2022 07:17+1100.
Links: Search |
Version History |
Contents |
Glossary |
QA |
Compare to R4B |
Compare to R5 Draft |
|
Propose a change