@prefix fhir: <http://hl7.org/fhir/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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 -------------------------------------------------------------------

<http://hl7.org/fhir/Library/omtk-logic> a fhir:Library ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "omtk-logic"] ; # 
  fhir:extension ( [
     fhir:url [
       fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/StructureDefinition/structuredefinition-wg>
     ] ;
     fhir:value [
       a fhir:Code ;
       fhir:v "cds"
     ]
  ] ) ; # 
  fhir:identifier ( [
     fhir:use [ fhir:v "official" ] ;
     fhir:value [ fhir:v "OMTKLogic" ]
  ] ) ; # 
  fhir:version [ fhir:v "0.1.0"] ; # 
  fhir:name [ fhir:v "OMTKLogic"] ; # 
  fhir:title [ fhir:v "OMTK Logic"] ; # 
  fhir:status [ fhir:v "active"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:type [
     fhir:coding ( [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/library-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/library-type>
       ] ;
       fhir:code [ fhir:v "logic-library" ] ;
       fhir:display [ fhir:v "Logic Library" ]
     ] )
  ] ; # 
  fhir:date [ fhir:v "2017-05-05"^^xsd:date] ; # 
  fhir:publisher [ fhir:v "HL7 International / Clinical Decision Support"] ; # 
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://www.hl7.org/Special/committees/dss" ]
     ] )
  ] ) ; # 
  fhir:description [ fhir:v "Opioid Management Terminology Knowledge Base Logic for use in implementing CDC Opioid Prescribing Guidelines."] ; # 
  fhir:useContext ( [
     fhir:code [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/usage-context-type>
       ] ;
       fhir:code [ fhir:v "focus" ] ;
       fhir:display [ fhir:v "Clinical Focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:182888003 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "182888003" ] ;
         fhir:display [ fhir:v "Medication requested (situation)" ]
       ] )
     ]
  ] [
     fhir:code [
       fhir:system [
         fhir:v "http://terminology.hl7.org/CodeSystem/usage-context-type"^^xsd:anyURI ;
         fhir:l <http://terminology.hl7.org/CodeSystem/usage-context-type>
       ] ;
       fhir:code [ fhir:v "focus" ] ;
       fhir:display [ fhir:v "Clinical Focus" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:82423001 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "82423001" ] ;
         fhir:display [ fhir:v "Chronic pain (finding)" ]
       ] )
     ]
  ] ) ; # 
  fhir:jurisdiction ( [
     fhir:coding ( [
       fhir:system [
         fhir:v "urn:iso:std:iso:3166"^^xsd:anyURI ;
         fhir:l <urn:iso:std:iso:3166>
       ] ;
       fhir:code [ fhir:v "US" ] ;
       fhir:display [ fhir:v "United States of America" ]
     ] )
  ] ) ; # 
  fhir:purpose [ fhir:v "This library normalizes units to UCUM units, identifies the conversion factor for the given ingredient, identifies the non-surgical opioid ingredients and their strengths that make up a drug identified by the given rxNormCode, calculates daily dose for a specific ingredient based on the ingredient strength, dose form, dose quantity, and daily frequency, calculates daily frequency given frequency within a period, and calculates the Morphine Milligram Equivalency (MME) for a given prescription."] ; # 
  fhir:usage [ fhir:v "This library is used to gather information about an opioid prescription necessary to offer opioid management guidance for a patient."] ; # 
  fhir:copyright [ fhir:v "© CDC 2016+."] ; # 
  fhir:topic ( [
     fhir:text [ fhir:v "Opioid Prescribing" ]
  ] ) ; # 
  fhir:author ( [
     fhir:name [ fhir:v "Kensaku Kawamoto, MD, PhD, MHS" ]
  ] [
     fhir:name [ fhir:v "Bryn Rhodes" ]
  ] [
     fhir:name [ fhir:v "Floyd Eisenberg, MD, MPH" ]
  ] [
     fhir:name [ fhir:v "Robert McClure, MD, MPH" ]
  ] ) ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "depends-on" ] ;
     fhir:resource [
       fhir:v "http://example.org/fhir/Library/omtk-modelinfo"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/Library/omtk-modelinfo>
     ]
  ] [
     fhir:type [ fhir:v "documentation" ] ;
     fhir:display [ fhir:v "CDC guideline for prescribing opioids for chronic pain" ] ;
     fhir:document [
       fhir:url [
         fhir:v "https://guidelines.gov/summaries/summary/50153/cdc-guideline-for-prescribing-opioids-for-chronic-pain---united-states-2016#420"^^xsd:anyURI ;
         fhir:l <https://guidelines.gov/summaries/summary/50153/cdc-guideline-for-prescribing-opioids-for-chronic-pain---united-states-2016#420>
       ]
     ]
  ] [
     fhir:type [ fhir:v "documentation" ] ;
     fhir:display [ fhir:v "MME Conversion Tables" ] ;
     fhir:document [
       fhir:url [
         fhir:v "https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf"^^xsd:anyURI ;
         fhir:l <https://www.cdc.gov/drugoverdose/pdf/calculating_total_daily_dose-a.pdf>
       ]
     ]
  ] ) ; # 
  fhir:content ( [
     fhir:contentType [ fhir:v "text/cql" ] ;
     fhir:data [ fhir:v "[encoded data, 19816 characters]"^^xsd:base64Binary ] ;
     fhir:url [
       fhir:v "cql/OMTKLogic-0.1.0.cql"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/cql/OMTKLogic-0.1.0.cql>
     ]
  ] [
     fhir:contentType [ fhir:v "application/elm+xml" ] ;
     fhir:data [ fhir:v "[encoded data, 250688 characters]"^^xsd:base64Binary ] ;
     fhir:url [
       fhir:v "elm/OMTKLogic-0.1.0.xml"^^xsd:anyURI ;
       fhir:l <http://hl7.org/fhir/elm/OMTKLogic-0.1.0.xml>
     ]
  ] ) . # 

# -------------------------------------------------------------------------------------

