<StructureDefinition xmlns="http://hl7.org/fhir">
  <meta>
    <lastUpdated value="2017-08-29T15:35:35.175+01:00" />
  </meta>
  <url value="StructureDefinition/MyModel" />
  <name value="LocationLogicalModel" />
  <status value="draft" />
  <date value="2017-08-29T14:22:51.097+01:00" />
  <description value="Abstraction of CareConnect-Location-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" />
  <type value="LocationLogicalModel" />
  <baseDefinition value="http://hl7.org/fhir/StructureDefinition/Element" />
  <derivation value="specialization" />
  <snapshot>
    <element id="LocationLogicalModel">
      <path value="LocationLogicalModel" />
      <short value="A logical model of CareConnect-Location-1" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="Element" />
      </type>
    </element>
    <element id="LocationLogicalModel.identifiers">
      <path value="LocationLogicalModel.identifiers" />
      <short value="Unique code or number identifying the location to its users " />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="LocationLogicalModel.identifiers.ODS Site Code">
      <path value="LocationLogicalModel.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="LocationLogicalModel.identifiers.localIdentifier">
      <path value="LocationLogicalModel.identifiers.localIdentifier" />
      <short value="  Unique code or number identifying the location to its users" />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="LocationLogicalModel.identifiers.localIdentifier.use">
      <path value="LocationLogicalModel.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="LocationLogicalModel.identifiers.localIdentifier.type">
      <path value="LocationLogicalModel.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="LocationLogicalModel.identifiers.localIdentifier.system">
      <path value="LocationLogicalModel.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="LocationLogicalModel.identifiers.localIdentifier.value">
      <path value="LocationLogicalModel.identifiers.localIdentifier.value" />
      <short value="The value that is unique " />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="LocationLogicalModel.identifiers.localIdentifier.period">
      <path value="LocationLogicalModel.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="LocationLogicalModel.identifiers.localIdentifier.assigner">
      <path value="LocationLogicalModel.identifiers.localIdentifier.assigner" />
      <short value="Location that issued id (may be just text) " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
        <aggregation value="referenced" />
      </type>
    </element>
    <element id="LocationLogicalModel.status">
      <path value="LocationLogicalModel.status" />
      <short value="Indicates whether the location is still in use. " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="LocationLogicalModel.name">
      <path value="LocationLogicalModel.name" />
      <short value="Name of the location as used by humans" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="LocationLogicalModel.description">
      <path value="LocationLogicalModel.description" />
      <short value="Description of the location" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="string" />
      </type>
    </element>
    <element id="LocationLogicalModel.mode">
      <path value="LocationLogicalModel.mode" />
      <short value="Indicates whether a resource instance represents a specific location or a class of locations." />
      <definition value="Instance|Kind" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="code" />
      </type>
    </element>
    <element id="LocationLogicalModel.type">
      <path value="LocationLogicalModel.type" />
      <short value="Indicates the type of function performed at the location." />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="LocationLogicalModel.telecom">
      <path value="LocationLogicalModel.telecom" />
      <short value="Contact details of the location " />
      <min value="0" />
      <max value="*" />
      <type>
        <code value="ContactPoint" />
      </type>
    </element>
    <element id="LocationLogicalModel.address">
      <path value="LocationLogicalModel.address" />
      <short value="Physical location" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Address" />
      </type>
    </element>
    <element id="LocationLogicalModel.physicalType">
      <path value="LocationLogicalModel.physicalType" />
      <short value="Physical form of the location" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="CodeableConcept" />
      </type>
    </element>
    <element id="LocationLogicalModel.position">
      <path value="LocationLogicalModel.position" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="BackboneElement" />
      </type>
    </element>
    <element id="LocationLogicalModel.position.longitude">
      <path value="LocationLogicalModel.position.longitude" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
    </element>
    <element id="LocationLogicalModel.position.latitude">
      <path value="LocationLogicalModel.position.latitude" />
      <min value="1" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
    </element>
    <element id="LocationLogicalModel.position.altitude">
      <path value="LocationLogicalModel.position.altitude" />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="decimal" />
      </type>
    </element>
    <element id="LocationLogicalModel.managingOrganization">
      <path value="LocationLogicalModel.managingOrganization" />
      <short value="Organization responsible for provisioning and upkeep " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Organization" />
      </type>
    </element>
    <element id="LocationLogicalModel.partOf">
      <path value="LocationLogicalModel.partOf" />
      <short value="Another Location this one is physically part of " />
      <min value="0" />
      <max value="1" />
      <type>
        <code value="Reference" />
        <targetProfile value="http://hl7.org/fhir/StructureDefinition/Location" />
      </type>
    </element>
  </snapshot>
</StructureDefinition>