<ValueSet xmlns="http://hl7.org/fhir">
  <id value="ValueSet-DocumentClass" />
  <url value="http://ontariohealth.ca/fhir/ehr/ValueSet/document-class" />
  <version value="1.0.0" />
  <name value="DocumentClassEHR" />
  <title value="Document Class EHR" />
  <status value="active" />
  <experimental value="false" />
  <date value="2025-12-02" />
  <publisher value="Ontario Health" />
  <contact>
    <name value="Ontario Health - Digital Health Standards" />
    <telecom>
      <system value="url" />
      <value value="https://ehealthontario.on.ca/en/it-professionals/standards" />
    </telecom>
    <telecom>
      <system value="email" />
      <value value="DigitalHealthStandards@ontariohealth.ca" />
    </telecom>
  </contact>
  <description value="This value set defines the codes representing document class from LOINC as defined in the LOINC Manual, excluding class = RAD. The class codes from LOINC is intended to be used for report categorization based on the type of study performed. Radiology class type is excluded from this value set it will be contributed using DiagnosticReport resource." />
  <immutable value="false" />
  <copyright value="This material contains content from LOINC (http://loinc.org). LOINC is copyright © Regenstrief Institute, Inc. and the Logical Observation Identifiers Names and Codes (LOINC) Committee and is available at no cost under the license at http://loinc.org/license. LOINC® is a registered United States trademark of Regenstrief Institute, Inc." />
  <compose>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="PATH" />
      </filter>
    </include>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="NEURO" />
      </filter>
    </include>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="CARD.PROC" />
      </filter>
    </include>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="CLIN" />
      </filter>
    </include>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="ENDO.GI" />
      </filter>
    </include>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="OBGYN" />
      </filter>
    </include>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="PULM" />
      </filter>
    </include>
    <include>
      <system value="http://loinc.org" />
      <filter>
        <property value="SCALE_TYP" />
        <op value="=" />
        <value value="Doc" />
      </filter>
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="CARD.US" />
      </filter>
    </include>
    <exclude>
      <system value="http://loinc.org" />
      <filter>
        <property value="CLASS" />
        <op value="=" />
        <value value="RAD" />
      </filter>
    </exclude>
  </compose>
</ValueSet>