<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="PhEMANLP" />
  <url value="http://projectphema.org/fhir/StructureDefinition/phema_nlp" />
  <version value="phema-fhir-v1" />
  <name value="PhEMA NLP Extension" />
  <status value="draft" />
  <publisher value="Mayo Clinic Standards and Interoperability Program" />
  <contact>
    <name value="MCSI team" />
  </contact>
  <date value="2017-11-15T12:22:50-06:00" />
  <description value="This is an PhEMA NLP Extension represented as FHIR StructureDefinition" />
  <kind value="logical" />
  <abstract value="false" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <snapshot>
    <element>
      <path value="PhEMANLP" />
      <short value="PhEMANLP" />
      <definition value="The PhEMA_NLP extension will capture NLP components of phenotype algorithms." />
      <min value="0" />
      <max value="*" />
    </element>
    <element>
      <path value="PhEMANLP.document_type" />
      <short value="document_type" />
      <definition value="SNOMED CT, LOINC" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="Note.note_class_concept_id" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.document_section" />
      <short value="document_section" />
      <definition value="SNOMED CT, LOINC, HL7" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="NoteNLP.section_concept_id" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.negation" />
      <short value="negation" />
      <definition value="&quot;affirmed&quot;, &quot;negated&quot;" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="NoteNLP.term_modifiers" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.experiencer" />
      <short value="experiencer" />
      <definition value="&quot;patient&quot;, &quot;family member&quot;, &quot;other&quot;" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="NoteNLP.term_modifiers" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.temporality" />
      <short value="temporality" />
      <definition value="&quot;present&quot;, &quot;past&quot;, &quot;future&quot;" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="NoteNLP.term_temporal" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.certainty" />
      <short value="certainty" />
      <definition value="range from 0 to 1" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="String" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="NoteNLP.term_modifiers" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.recorder" />
      <short value="recorder" />
      <definition value="&quot;provider&quot;, &quot;patient&quot;, &quot;other&quot;" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="Note.provider_id" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.health_record_field" />
      <short value="health_record_field" />
      <definition value="health record field" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="String" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="NoteNLP.term_modifiers" />
      </mapping>
    </element>
    <element>
      <path value="PhEMANLP.source" />
      <short value="source" />
      <definition value="source" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="String" />
      </type>
      <mapping>
        <identity value="ohdsi" />
        <map value="Note.note_source_value" />
      </mapping>
    </element>
  </snapshot>
</StructureDefinition>