<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2017-08-25T11:22:28.021+01:00" />
  </meta>
  <url value="StructureDefinition/MyModel" />
  <name value="OrganizationLogicalModel" />
  <status value="draft" />
  <date value="2017-08-23T16:39:08.5557562+01:00" />
  <description value="Abstraction of CareConnect-Organization-1 profile.&#xD;&#xA;&#xD;&#xA;'Abstract' version of logical model - focused on data content, rather than technical/fhir implementation elements." />
  <fhirVersion value="3.0.1" />
  <kind value="logical" />
  <abstract value="false" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <snapshot>
    <element id="OrganizationLogicalModel">
      <path value="OrganizationLogicalModel" />
      <short value="A logical model of CareConnect-Organization-1" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Element" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers">
      <path value="OrganizationLogicalModel.identifiers" />
      <short value="Identifies this organization across multiple systems " />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.ODS Organisation Code">
      <path value="OrganizationLogicalModel.identifiers.ODS Organisation Code" />
      <short value="Organisation Data Service code" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.ODS Site Code">
      <path value="OrganizationLogicalModel.identifiers.ODS Site Code" />
      <short value="ODS Site code to identify the organisation at site level" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Identifier" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.localIdentifier">
      <path value="OrganizationLogicalModel.identifiers.localIdentifier" />
      <short value="Identifies this organization across multiple systems" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.localIdentifier.use">
      <path value="OrganizationLogicalModel.identifiers.localIdentifier.use" />
      <short value="Identifies the purpose for this identifier, if known " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.localIdentifier.type">
      <path value="OrganizationLogicalModel.identifiers.localIdentifier.type" />
      <short value="A coded type for an identifier that can be used to determine which identifier to use for a specific purpose" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.localIdentifier.system">
      <path value="OrganizationLogicalModel.identifiers.localIdentifier.system" />
      <short value="The local or system suppliers identifier namespace " />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="uri" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.localIdentifier.value">
      <path value="OrganizationLogicalModel.identifiers.localIdentifier.value" />
      <short value="The value that is unique " />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.localIdentifier.period">
      <path value="OrganizationLogicalModel.identifiers.localIdentifier.period" />
      <short value="Time period when id is/was valid for use " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.identifiers.localIdentifier.assigner">
      <path value="OrganizationLogicalModel.identifiers.localIdentifier.assigner" />
      <short value="Organization that issued id (may be just text) " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.name">
      <path value="OrganizationLogicalModel.name" />
      <short value="Name used for the organization" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.type">
      <path value="OrganizationLogicalModel.type" />
      <short value="Kind of organization " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.mainLocation">
      <path value="OrganizationLogicalModel.mainLocation" />
      <short value=" Main location " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.telecom">
      <path value="OrganizationLogicalModel.telecom" />
      <short value="A contact detail for the organization " />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.address">
      <path value="OrganizationLogicalModel.address" />
      <short value="An address for the organization " />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Address" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.partOf">
      <path value="OrganizationLogicalModel.partOf" />
      <short value="The organization of which this organization forms a part " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.contact">
      <path value="OrganizationLogicalModel.contact" />
      <short value="Contact for the organization for a certain purpose" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.contact.purpose">
      <path value="OrganizationLogicalModel.contact.purpose" />
      <short value="The type of contact " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.contact.name">
      <path value="OrganizationLogicalModel.contact.name" />
      <short value="A name associated with the contact" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="HumanName" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.contact.telecom">
      <path value="OrganizationLogicalModel.contact.telecom" />
      <short value="Contact details (telephone, email, etc.) for a contact " />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.contact.address">
      <path value="OrganizationLogicalModel.contact.address" />
      <short value="Visiting or postal addresses for the contact" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Address" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.active">
      <path value="OrganizationLogicalModel.active" />
      <short value="Date the organization became active, and if inactive, the date the organization became inactive." />
      <comment value="Don't think a boolean is going to hold the data described" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="boolean" />
      </type>
    </element>
    <element id="OrganizationLogicalModel.organization-period">
      <path value="OrganizationLogicalModel.organization-period" />
      <short value="Date range that this organization should be considered available " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Period" />
      </type>
    </element>
  </snapshot>
</StructureDefinition>