Clinical Practice Guidelines
2.0.0-draft - draft International flag

Clinical Practice Guidelines, published by HL7 International / Clinical Decision Support. This guide is not an authorized publication; it is the continuous build for version 2.0.0-draft built by the FHIR (HL7® FHIR® Standard) CI Build. This version is based on the current content of https://github.com/HL7/cqf-recommendations/ and changes regularly. See the Directory of published versions

: Resume Medication Library - TTL Representation

Active as of 2024-10-18

Raw ttl | Download


@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:Library ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "resumemedication-library"] ; # 
  fhir:text [
fhir:status [ fhir:v "generated" ] ;
fhir:div "<div xmlns=\"http://www.w3.org/1999/xhtml\"><p class=\"res-header-id\"><b>Generated Narrative: Library resumemedication-library</b></p><a name=\"resumemedication-library\"> </a><a name=\"hcresumemedication-library\"> </a><a name=\"resumemedication-library-en-US\"> </a><h2>Contents</h2><p><code>text/cql</code></p><pre><code class=\"language-sql\">library ResumeMedication\n\nusing FHIR version '4.0.1'\n\ninclude FHIRHelpers version '4.0.1'\n\ncodesystem &quot;Activity Type&quot;: 'http://hl7.org/fhir/uv/cpg/CodeSystem/cpg-activity-type-cs'\n\ncode &quot;Resume Activity&quot;: 'resume-activity' from &quot;Activity Type&quot;\n\ncontext Patient\n\n/* Recommendation to resume an existing order for a medication on hold */\n\n/*\nPositive recommendation:\n\nIf an on-hold order for the medication exists\n  Propose resuming the medication\n\nGiven a proposal, the user can:\n  Accept the proposal\n  Ignore the proposal\n  Reject the proposal without reason\n  Reject the proposal with reason\n\nScenario 1: On-hold medication order, no plan or proposal, decision support should propose\nScenario 2: Active medication order, incomplete proposal, decision support should not propose\nScenario 3: Active medication order, rejected proposal, decision support should not propose\nScenario 4: No active medication order, decision support should not propose\n\n*/\n\ndefine &quot;Medication Proposal&quot;:\n  [MedicationRequest] M\n    where M.intent = 'order'\n      and M.status = 'on-hold'\n\ndefine &quot;Inclusion Criteria&quot;:\n  Patient.active\n    and exists &quot;Medication Proposal&quot;\n\ndefine &quot;Resume Medication Proposal&quot;:\n  [Task] T\n    where R.code ~ &quot;Resume Activity&quot;\n\ndefine &quot;Is Recommendation Applicable&quot;:\n  &quot;Inclusion Criteria&quot;\n    and not exists &quot;Resume Medication Proposal&quot;\n</code></pre><p><code>No Content</code> (<code>application/elm+xml</code>)</p></div>"
  ] ; # 
  fhir:extension ( [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ] ;
fhir:value [ fhir:v "shareable" ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ] ;
fhir:value [ fhir:v "computable" ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeCapability"^^xsd:anyURI ] ;
fhir:value [ fhir:v "publishable" ]
  ] [
fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-knowledgeRepresentationLevel"^^xsd:anyURI ] ;
fhir:value [ fhir:v "structured" ]
  ] ) ; # 
  fhir:url [ fhir:v "http://hl7.org/fhir/uv/cpg/Library/resumemedication-library"^^xsd:anyURI] ; # 
  fhir:version [ fhir:v "2.0.0-draft"] ; # 
  fhir:name [ fhir:v "ResumeMedicationLibrary"] ; # 
  fhir:title [ fhir:v "Resume Medication Library"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v "true"^^xsd:boolean] ; # 
  fhir:type [
    ( fhir:coding [
fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ] ;
fhir:code [ fhir:v "logic-library" ]     ] )
  ] ; # 
  fhir:date [ fhir:v "2024-10-18T13:53:25+00:00"^^xsd:dateTime] ; # 
  fhir:publisher [ fhir:v "HL7 International / Clinical Decision Support"] ; # 
  fhir:contact ( [
fhir:name [ fhir:v "HL7 International / Clinical Decision Support" ] ;
    ( fhir:telecom [
fhir:system [ fhir:v "url" ] ;
fhir:value [ fhir:v "http://www.hl7.org/Special/committees/dss" ]     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Logic for an example recommendation to resume a medication"] ; # 
  fhir:jurisdiction ( [
    ( fhir:coding [
fhir:system [ fhir:v "http://unstats.un.org/unsd/methods/m49/m49.htm"^^xsd:anyURI ] ;
fhir:code [ fhir:v "001" ] ;
fhir:display [ fhir:v "World" ]     ] )
  ] ) ; # 
  fhir:content ( [
fhir:contentType [ fhir:v "text/cql" ] ;
fhir:data [ fhir:v "bGlicmFyeSBSZXN1bWVNZWRpY2F0aW9uCgp1c2luZyBGSElSIHZlcnNpb24gJzQuMC4xJwoKaW5jbHVkZSBGSElSSGVscGVycyB2ZXJzaW9uICc0LjAuMScKCmNvZGVzeXN0ZW0gIkFjdGl2aXR5IFR5cGUiOiAnaHR0cDovL2hsNy5vcmcvZmhpci91di9jcGcvQ29kZVN5c3RlbS9jcGctYWN0aXZpdHktdHlwZS1jcycKCmNvZGUgIlJlc3VtZSBBY3Rpdml0eSI6ICdyZXN1bWUtYWN0aXZpdHknIGZyb20gIkFjdGl2aXR5IFR5cGUiCgpjb250ZXh0IFBhdGllbnQKCi8qIFJlY29tbWVuZGF0aW9uIHRvIHJlc3VtZSBhbiBleGlzdGluZyBvcmRlciBmb3IgYSBtZWRpY2F0aW9uIG9uIGhvbGQgKi8KCi8qClBvc2l0aXZlIHJlY29tbWVuZGF0aW9uOgoKSWYgYW4gb24taG9sZCBvcmRlciBmb3IgdGhlIG1lZGljYXRpb24gZXhpc3RzCiAgUHJvcG9zZSByZXN1bWluZyB0aGUgbWVkaWNhdGlvbgoKR2l2ZW4gYSBwcm9wb3NhbCwgdGhlIHVzZXIgY2FuOgogIEFjY2VwdCB0aGUgcHJvcG9zYWwKICBJZ25vcmUgdGhlIHByb3Bvc2FsCiAg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