<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="ocp-flag" />
  <meta>
    <versionId value="1" />
    <lastUpdated value="2018-04-27T21:50:50.89+00:00" />
  </meta>
  <language value="US-en" />
  <text>
    <status value="generated" />
    <div xmlns="http://www.w3.org/1999/xhtml">
The FHIR STU3 (Release 3) Omnibus Care Plan (OCP) Flag profile uses FHIR resources and describes minimum expectations with supported data elements and changes to the cardinality to alert practitioners to information that is important to influence their interaction with a Omnibus Care Plan (OCP) Patient prior to detailed review of the record. It identifies which core elements, extensions, and value sets SHALL be present in the resource when using this profile. Flags are not raised as a result of a reported or proposed action.
Dependencies:
   Flag profile that conforms to this specification must include reference to other resources 
<ul><li>OCP-Patient</li><li>Location</li><li>Group</li><li>Organization</li><li>PlanDefinition</li><li>OCP-Practitioner</li><li>Medication</li><li>Procedure</li></ul></div>
  </text>
  <url value="http://hl7.org/fhir/StructureDefinition/ocp-flag" />
  <version value="1.0" />
  <name value="OCP Flag Profile" />
  <title value="OCP Flag Profile" />
  <status value="draft" />
  <date value="2018-03-26T14:59:09.485-04:00" />
  <publisher value="SAMHSA" />
  <contact>
    <name value="Neelima Chennamaraja" />
    <telecom>
      <system value="url" />
      <value value="www.eversolve.com" />
      <period>
        <start value="1999-06-15" />
      </period>
    </telecom>
    <telecom>
      <system value="email" />
      <value value="neelima@eversolve.com" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="The Omnibus Care Plan (OCP) Flag profile is used to alert practitioners to information that is important to influence their interaction with a Omnibus Care Plan (OCP) Patient prior to detailed review of the record. Flags are not used to convey information to a specific individual or organization. Flags are not raised as a result of a reported or proposed action." />
  <jurisdiction>
    <coding>
      <code value="US" />
      <display value="US-Realm" />
    </coding>
    <text value="US-Realm OCP Flag Profile published by SAMHSA" />
  </jurisdiction>
  <purpose value="The OCP Flag profile includes all the elements related to basic need for OCP (which could change over time). This profile is intended to be implemented by OCP (Omnibus Care Plan) systems." />
  <copyright value="+Copyright (c) 2017 SAMHSA. All Rights Reserved." />
  <fhirVersion value="3.0.1" />
  <kind value="resource" />
  <abstract value="false" />
  <type value="Flag" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Flag" />
  <derivation value="constraint" />
  <differential>
    <element id="Flag.status">
      <path value="Flag.status" />
      <type>
        <code value="code" />
        <profile value="http://hl7.org/fhir/StructureDefinition/code" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Flag.category">
      <path value="Flag.category" />
      <min value="1" />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/StructureDefinition/CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Flag.code">
      <path value="Flag.code" />
      <definition value="The coded value or textual component of the flag to display to the user. OCP will use only the code.text (to store user entered text) part of the CodeableConcept and code.coding will not be populated. No valueset required for this." />
      <type>
        <code value="CodeableConcept" />
        <profile value="http://hl7.org/fhir/StructureDefinition/CodeableConcept" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Flag.subject">
      <path value="Flag.subject" />
      <definition value="The patient, location, group , organization , or practitioner, etc. this is about record this flag is associated with. Read-only. System to autopopulate resource reference for which Flag was added. For the time being, implemented only for Patient but the same module may be used for flags related to Location, Organization, Pracititioner, etc. later." />
      <comment value="References SHALL be a reference to an actual FHIR resource, and SHALL be resolveable (allowing for access control, temporary unavailability, etc). Resolution can be either by retrieval from the URL, or, where applicable by resource type, by treating an absolute reference as a canonical URL and looking it up in a local registry/repository. &#xD;&#xA;Note: Plan to submit FHIR Tracker to change to Reference(Any) or atleast add HealthcareService, RelatedPerson and CareTeam to support future OCP requirements." />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Group" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/PlanDefinition" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Medication" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Procedure" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ocp-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ocp-practitioner" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Flag.period">
      <path value="Flag.period" />
      <definition value="The period of time from the activation of the flag to inactivation of the flag. If the flag is active, the end of the period should be unspecified." />
      <min value="1" />
      <type>
        <code value="Period" />
        <profile value="http://hl7.org/fhir/StructureDefinition/Period" />
      </type>
      <mustSupport value="true" />
    </element>
    <element id="Flag.author">
      <path value="Flag.author" />
      <definition value="The person, organization or device that created the flag. Read-only. System populated with the current user context (usually Practitioner but could be Patient or RelatedPerson). May not need to support Organization.  &#xD;&#xA;&#xD;&#xA;Note: Plan to submit FHIR Tracker to change this to allow Reference to RelatedPerson since they can be part of care team." />
      <min value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ocp-patient" />
      </type>
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/ocp-practitioner" />
      </type>
      <mustSupport value="true" />
    </element>
  </differential>
</StructureDefinition>