@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/ActivityDefinition/referralPrimaryCareMentalHealth-initial> a fhir:ActivityDefinition ;
  fhir:nodeRole fhir:treeRoot ;
  fhir:id [ fhir:v "referralPrimaryCareMentalHealth-initial"] ; # 
  fhir:text [
     fhir:status [ fhir:v "generated" ] ;
     fhir:div [ fhir:v "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Id: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">ActivityDefinition/referralPrimaryCareMentalHealth-initial</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Status: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">draft</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Description: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">refer to primary care mental-health integrated care program for evaluation and treatment of mental health conditions now</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Category: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-left: 25px; padding-right: 25px;\">referral</td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Code: </b>\n               </td>\n            </tr>\n            <tr>\n               <td style=\"padding-right: 25px;\">\n                  <span style=\"padding-left: 25px;\">\n                     <b>text: </b>\n                     <span>Referral to service (procedure)</span>\n                     <br/>\n                  </span>\n                  <span>\n                     <span>\n                        <span style=\"padding-left: 25px;\">\n                           <b>system: </b>\n                           <span>http://snomed.info/sct</span>\n                           <br/>\n                        </span>\n                        <span style=\"padding-left: 25px;\">\n                           <b>code: </b>\n                           <span>306206005</span>\n                           <br/>\n                        </span>\n                     </span>\n                  </span>\n               </td>\n            </tr>\n         </table>\n         <p/>\n         <table class=\"grid dict\">\n            <tr>\n               <td>\n                  <b>Participant: </b>\n               </td>\n            </tr>\n            <tr style=\"vertical-align: top;\">\n               <td style=\"padding-left: 25px; padding-right: 25px;\">practitioner</td>\n            </tr>\n         </table>\n      </div>"^^rdf:XMLLiteral ]
  ] ; # 
  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:url [
     fhir:v "http://motivemi.com/artifacts/ActivityDefinition/referralPrimaryCareMentalHealth"^^xsd:anyURI ;
     fhir:l <http://motivemi.com/artifacts/ActivityDefinition/referralPrimaryCareMentalHealth>
  ] ; # 
  fhir:identifier ( [
     fhir:system [
       fhir:v "urn:ietf:rfc:3986"^^xsd:anyURI ;
       fhir:l <urn:ietf:rfc:3986>
     ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.4.642.19.5" ]
  ] [
     fhir:use [ fhir:v "official" ] ;
     fhir:system [
       fhir:v "http://motivemi.com/artifacts"^^xsd:anyURI ;
       fhir:l <http://motivemi.com/artifacts>
     ] ;
     fhir:value [ fhir:v "referralPrimaryCareMentalHealth" ]
  ] ) ; # 
  fhir:version [ fhir:v "1.0.0"] ; # 
  fhir:name [ fhir:v "ReferralPrimaryCareMentalHealth"] ; # 
  fhir:title [ fhir:v "Referral to Primary Care Mental Health"] ; # 
  fhir:status [ fhir:v "retired"] ; # 
  fhir:experimental [ fhir:v true] ; # 
  fhir:date [ fhir:v "2017-03-03T14:06:00Z"^^xsd:dateTime] ; # 
  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 "refer to primary care mental-health integrated care program for evaluation and treatment of mental health conditions now"] ; # 
  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 "age" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         fhir:system [
           fhir:v "https://meshb.nlm.nih.gov"^^xsd:anyURI ;
           fhir:l <https://meshb.nlm.nih.gov>
         ] ;
         fhir:code [ fhir:v "D000328" ] ;
         fhir:display [ fhir:v "Adult" ]
       ] )
     ]
  ] [
     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:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:87512008 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "87512008" ] ;
         fhir:display [ fhir:v "Mild major depression" ]
       ] )
     ]
  ] [
     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:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:40379007 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "40379007" ] ;
         fhir:display [ fhir:v "Mild recurrent major depression" ]
       ] )
     ]
  ] [
     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:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:225444004 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "225444004" ] ;
         fhir:display [ fhir:v "At increased risk for suicide (finding)" ]
       ] )
     ]
  ] [
     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:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:306206005 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "306206005" ] ;
         fhir:display [ fhir:v "Referral to service (procedure)" ]
       ] )
     ]
  ] [
     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 "user" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:309343006 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "309343006" ] ;
         fhir:display [ fhir:v "Physician" ]
       ] )
     ]
  ] [
     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 "venue" ]
     ] ;
     fhir:value [
       a fhir:CodeableConcept ;
       fhir:coding ( [
         a sct:440655000 ;
         fhir:system [
           fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
           fhir:l <http://snomed.info/sct>
         ] ;
         fhir:code [ fhir:v "440655000" ] ;
         fhir:display [ fhir:v "Outpatient environment" ]
       ] )
     ]
  ] ) ; # 
  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:purpose [ fhir:v "Defines a referral to a mental-health integrated care program for use in suicide risk order sets. The definition is independent of the order set in which it appears to allow reuse of the general definition of the referrral."] ; # 
  fhir:usage [ fhir:v "This activity definition is used as the definition of a referral request within various suicide risk order sets. Elements that apply universally are defined here, while elements that apply to the specific setting of a referral within a particular order set are defined in the order set."] ; # 
  fhir:copyright [ fhir:v "© Copyright 2016 Motive Medical Intelligence. All rights reserved."] ; # 
  fhir:approvalDate [ fhir:v "2016-03-12"^^xsd:date] ; # 
  fhir:lastReviewDate [ fhir:v "2016-08-15"^^xsd:date] ; # 
  fhir:effectivePeriod [
     fhir:start [ fhir:v "2016-01-01"^^xsd:date ] ;
     fhir:end [ fhir:v "2017-12-31"^^xsd:date ]
  ] ; # 
  fhir:topic ( [
     fhir:text [ fhir:v "Mental Health Referral" ]
  ] ) ; # 
  fhir:author ( [
     fhir:name [ fhir:v "Motive Medical Intelligence" ] ;
     fhir:telecom ( [
       fhir:system [ fhir:v "phone" ] ;
       fhir:value [ fhir:v "415-362-4007" ] ;
       fhir:use [ fhir:v "work" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "info@motivemi.com" ] ;
       fhir:use [ fhir:v "work" ]
     ] )
  ] ) ; # 
  fhir:relatedArtifact ( [
     fhir:type [ fhir:v "citation" ] ;
     fhir:display [ fhir:v "Practice Guideline for the Treatment of Patients with Major Depressive Disorder" ] ;
     fhir:document [
       fhir:url [
         fhir:v "http://psychiatryonline.org/pb/assets/raw/sitewide/practice_guidelines/guidelines/mdd.pdf"^^xsd:anyURI ;
         fhir:l <http://psychiatryonline.org/pb/assets/raw/sitewide/practice_guidelines/guidelines/mdd.pdf>
       ]
     ]
  ] [
     fhir:type [ fhir:v "successor" ] ;
     fhir:resource [
       fhir:v "http://example.org/fhir/ActivityDefinition/referralPrimaryCareMentalHealth"^^xsd:anyURI ;
       fhir:l <http://example.org/fhir/ActivityDefinition/referralPrimaryCareMentalHealth>
     ]
  ] ) ; # 
  fhir:kind [ fhir:v "ServiceRequest"] ; #   Kind indicates the type of resource that is defined by this activity, a ServiceRequest in this case  
  fhir:code [
     fhir:coding ( [
       a sct:306206005 ;
       fhir:system [
         fhir:v "http://snomed.info/sct"^^xsd:anyURI ;
         fhir:l <http://snomed.info/sct>
       ] ;
       fhir:code [ fhir:v "306206005" ]
     ] ) ;
     fhir:text [ fhir:v "Referral to service (procedure)" ]
  ] ; # 
  fhir:timing [
     a fhir:Timing ;
     fhir:event ( [
       fhir:extension ( [
         fhir:url [
           fhir:v "http://hl7.org/fhir/StructureDefinition/cqf-expression"^^xsd:anyURI ;
           fhir:l <http://hl7.org/fhir/StructureDefinition/cqf-expression>
         ] ;
         fhir:value [
           a fhir:Expression ;
           fhir:language [ fhir:v "text/cql-expression" ] ;
           fhir:expression [ fhir:v "Now()" ]
         ]
       ] ) #   The expression here specifies the value for the timing of the resulting resource.\n		   In this case, ServiceRequest.fulfillmentTime.start  
     ] )
  ] ; # 
  fhir:participant ( [
     fhir:type [ fhir:v "practitioner" ]
  ] ) . # 

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

