This page is part of the FHIR Specification (v5.0.0-ballot: FHIR R5 Ballot Preview). The current version which supercedes this version is 5.0.0. For a full list of available versions, see the Directory of published versions
FHIR Infrastructure Work Group | Maturity Level: N/A | Standards Status: Informative | Compartments: Not linked to any defined compartments |
Raw Turtle (+ also see Turtle/RDF Format Specification)
Example Named Query of Patients based on risk assessments
@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:OperationDefinition; fhir:nodeRole fhir:treeRoot; fhir:Resource.id [ fhir:value "example-query-high-risk"]; fhir:DomainResource.text [ fhir:Narrative.status [ fhir:value "generated" ]; fhir:Narrative.div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p><b>Generated Narrative: OperationDefinition</b><a name=\"example-query-high-risk\"> </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 OperationDefinition "example-query-high-risk" </p></div><p><b>url</b>: <code>http://hl7.org/fhir/OperationDefinition/example-query-high-risk</code></p><p><b>version</b>: 0.0.1</p><p><b>name</b>: Example of High-Risk Patient Query</p><p><b>status</b>: draft</p><p><b>kind</b>: query</p><p><b>description</b>: Example Named Query of Patients based on risk assessments</p><p><b>code</b>: example-query-high-risk</p><p><b>resource</b>: Patient</p><p><b>system</b>: false</p><p><b>type</b>: true</p><p><b>instance</b>: false</p><blockquote><p><b>parameter</b></p><p><b>name</b>: ward</p><p><b>use</b>: in</p><p><b>min</b>: 0</p><p><b>max</b>: *</p><p><b>documentation</b>: Ward filters to apply to patient locations</p><p><b>type</b>: string</p><p><b>searchType</b>: reference</p></blockquote><blockquote><p><b>parameter</b></p><p><b>name</b>: return</p><p><b>use</b>: out</p><p><b>min</b>: 1</p><p><b>max</b>: 1</p><p><b>documentation</b>: Searchset bundle</p><p><b>type</b>: Bundle</p></blockquote></div>" ]; fhir:OperationDefinition.url [ fhir:value "http://hl7.org/fhir/OperationDefinition/example-query-high-risk"]; fhir:OperationDefinition.version [ fhir:value "0.0.1"]; fhir:OperationDefinition.name [ fhir:value "Example of High-Risk Patient Query"]; fhir:OperationDefinition.status [ fhir:value "draft"]; fhir:OperationDefinition.kind [ fhir:value "query"]; fhir:OperationDefinition.description [ fhir:value "Example Named Query of Patients based on risk assessments"]; fhir:OperationDefinition.code [ fhir:value "example-query-high-risk"]; fhir:OperationDefinition.resource [ fhir:value "Patient"; fhir:index 0 ]; fhir:OperationDefinition.system [ fhir:value "false"^^xsd:boolean]; fhir:OperationDefinition.type [ fhir:value "true"^^xsd:boolean]; fhir:OperationDefinition.instance [ fhir:value "false"^^xsd:boolean]; fhir:OperationDefinition.parameter [ fhir:index 0; fhir:OperationDefinition.parameter.name [ fhir:value "ward" ]; fhir:OperationDefinition.parameter.use [ fhir:value "in" ]; fhir:OperationDefinition.parameter.min [ fhir:value "0"^^xsd:integer ]; fhir:OperationDefinition.parameter.max [ fhir:value "*" ]; fhir:OperationDefinition.parameter.documentation [ fhir:value "Ward filters to apply to patient locations" ]; fhir:OperationDefinition.parameter.type [ fhir:value "string" ]; fhir:OperationDefinition.parameter.searchType [ fhir:value "reference" ] ], [ fhir:index 1; fhir:OperationDefinition.parameter.name [ fhir:value "return" ]; fhir:OperationDefinition.parameter.use [ fhir:value "out" ]; fhir:OperationDefinition.parameter.min [ fhir:value "1"^^xsd:integer ]; fhir:OperationDefinition.parameter.max [ fhir:value "1" ]; fhir:OperationDefinition.parameter.documentation [ fhir:value "Searchset bundle" ]; fhir:OperationDefinition.parameter.type [ fhir:value "Bundle" ] ]] . # - 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.