<StructureDefinition xmlns="http://hl7.org/fhir">
  <id value="OHDSINote" />
  <url value="http://ohdsi.org/cdm/StructureDefinition/note" />
  <version value="ohdsi-cdm-v5" />
  <name value="OHDSI Note" />
  <status value="draft" />
  <publisher value="Mayo Clinic Standards and Interoperability Program" />
  <contact>
    <name value="MCSI team" />
  </contact>
  <date value="2017-11-15T11:14:45-06:00" />
  <description value="This is an OHDSI Note Table represented as FHIR StructureDefinition" />
  <kind value="logical" />
  <abstract value="false" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/DomainResource" />
  <snapshot>
    <element>
      <path value="Note" />
      <short value="Note" />
      <definition value="The NOTE table captures unstructured information that was recorded by a provider about a patient in free text notes on a given date." />
      <min value="0" />
      <max value="*" />
    </element>
    <element>
      <path value="Note.note_id" />
      <short value="note_id" />
      <definition value="A unique identifier for each note." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element>
      <path value="Note.person_id" />
      <short value="person_id" />
      <definition value="A foreign key identifier to the Person about whom the Note was recorded. The demographic details of that Person are stored in the PERSON table." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element>
      <path value="Note.note_date" />
      <short value="note_date" />
      <definition value="The date the note was recorded." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="date" />
      </type>
    </element>
    <element>
      <path value="Note.note_datetime" />
      <short value="note_datetime" />
      <definition value="The date and time the note was recorded." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="String" />
      </type>
    </element>
    <element>
      <path value="Note.note_type_concept_id" />
      <short value="note_type_concept_id" />
      <definition value="A foreign key to the predefined Concept in the Standardized Vocabularies reflecting the type, origin or provenance of the Note." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element>
      <path value="Note.note_class_concept_id" />
      <short value="note_class_concept_id" />
      <definition value="A foreign key to the predefined Concept in the Standardized Vocabularies reflecting the HL7 LOINC Document Type Vocabulary classification of the note." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element>
      <path value="Note.note_title" />
      <short value="note_title" />
      <definition value="The title of the Note as it appears in the source." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="String" />
      </type>
    </element>
    <element>
      <path value="Note.note_text" />
      <short value="note_text" />
      <definition value="The content of the Note." />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="String" />
      </type>
    </element>
    <element>
      <path value="Note.encoding_concept_id" />
      <short value="encoding_concept_id" />
      <definition value="A foreign key to the predefined Concept in the Standardized Vocabularies reflecting the note character encoding type" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element>
      <path value="Note.language_concept_id" />
      <short value="language_concept_id" />
      <definition value="A foreign key to the predefined Concept in the Standardized Vocabularies reflecting the language of the note" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element>
      <path value="Note.provider_id" />
      <short value="provider_id" />
      <definition value="A foreign key to the Provider in the PROVIDER table who took the Note." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
    <element>
      <path value="Note.note_source_value" />
      <short value="note_source_value" />
      <definition value="The source value associated with the origin of the note" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="String" />
      </type>
    </element>
    <element>
      <path value="Note.visit_occurrence_id" />
      <short value="visit_occurrence_id" />
      <definition value="Foreign key to the Visit in the VISIT_OCCURRENCE table when the Note was taken." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="id" />
      </type>
    </element>
  </snapshot>
</StructureDefinition>