This page is part of the FHIR Specification (v5.0.0-draft-final: Final QA Preview for R5 - see ballot notes). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
Example Task/cpg-example-1 (Turtle)
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example of a task to not administer a particular questionnaire, because it is part of typical care and patient circumstances indicate it should not be given
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
# - resource -------------------------------------------------------------------
[a fhir:Task ;
fhir:nodeRole fhir:treeRoot ;
fhir:id [ fhir:v "cpg-example-1"] ; # Example from https://hl7.org/fhir/uv/cpg/Task-request-dnci-scenario4.xml.html
fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: Task</b><a name=\"cpg-example-1\"> </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 Task "cpg-example-1" </p></div><p><b>status</b>: <span title=\" <instantiatesCanonical value="http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-collectinformation"/> \">ready</span></p><p><b>intent</b>: order</p><p><b>doNotPerform</b>: true</p><p><b>code</b>: Collect information <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></p><p><b>for</b>: <a href=\"patient-example.html\">Patient/example</a> "Peter CHALMERS"</p><h3>Inputs</h3><table class=\"grid\"><tr><td>-</td><td><b>Type</b></td><td><b>Value[x]</b></td></tr><tr><td>*</td><td>Collect information <span style=\"background: LightGoldenRodYellow; margin: 4px; border: 1px solid khaki\"> ()</span></td><td><span title=\" <valueCanonical value="http://hl7.org/fhir/uv/cpg/Questionnaire/activity-example-collectinformation"/> \"><a href=\"http://hl7.org/fhir/Questionnaire/f201\">http://hl7.org/fhir/Questionnaire/f201</a></span></td></tr></table></div>"
] ; # <instantiatesCanonical value="http://hl7.org/fhir/uv/cpg/ActivityDefinition/activity-example-collectinformation"/>
fhir:status [ fhir:v "ready"] ; #
fhir:intent [ fhir:v "order"] ; #
fhir:doNotPerform [ fhir:v "true"^^xsd:boolean] ; #
fhir:code [
fhir:text [ fhir:v "Collect information" ] # \n <coding>\n <system value=\"http:\/\/hl7.org\/fhir\/uv\/cpg\/CodeSystem\/cpg-activity-type\"\/>\n <code value=\"collect-information\"\/>\n <display value=\"Collect information\"\/>\n <\/coding>\n
] ; #
fhir:for [
fhir:reference [ fhir:v "Patient/example" ] # <reference value=\"Patient\/dnci-scenario4\"\/>
] ; #
fhir:input ( [
fhir:type [
fhir:text [ fhir:v "Collect information" ] # \n <coding>\n <system value=\"http:\/\/hl7.org\/fhir\/uv\/cpg\/CodeSystem\/cpg-activity-type\"\/>\n <code value=\"collect-information\"\/>\n <display value=\"Collect information\"\/>\n <\/coding>\n
] ;
fhir:value [
fhir:v "http://hl7.org/fhir/Questionnaire/f201"^^xsd:anyURI ;
fhir:link <http://hl7.org/fhir/Questionnaire/f201>
] # <valueCanonical value=\"http:\/\/hl7.org\/fhir\/uv\/cpg\/Questionnaire\/activity-example-collectinformation\"\/>
] )] . #
# -------------------------------------------------------------------------------------
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.