{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-08-29T14:35:35.175+00:00"
  },
  "url": "StructureDefinition/MyModel",
  "name": "LocationLogicalModel",
  "status": "draft",
  "date": "2017-08-29T13:22:51.097+00:00",
  "description": "Abstraction of CareConnect-Location-1 profile.\r\n\r\n'Abstract' version of logical model - focused on data content, rather than technical/fhir implementation elements.",
  "fhirVersion": "3.0.1",
  "kind": "logical",
  "abstract": false,
  "type": "LocationLogicalModel",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Element",
  "derivation": "specialization",
  "snapshot": {
    "element": [
      {
        "id": "LocationLogicalModel",
        "path": "LocationLogicalModel",
        "short": "A logical model of CareConnect-Location-1",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "Element"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers",
        "path": "LocationLogicalModel.identifiers",
        "short": "Unique code or number identifying the location to its users",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.ODS Site Code",
        "path": "LocationLogicalModel.identifiers.ODS Site Code",
        "short": "ODS Site code to identify the organisation at site level",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Identifier"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.localIdentifier",
        "path": "LocationLogicalModel.identifiers.localIdentifier",
        "short": "Unique code or number identifying the location to its users",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.localIdentifier.use",
        "path": "LocationLogicalModel.identifiers.localIdentifier.use",
        "short": "Identifies the purpose for this identifier, if known",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.localIdentifier.type",
        "path": "LocationLogicalModel.identifiers.localIdentifier.type",
        "short": "A coded type for an identifier that can be used to determine which identifier to use for a specific purpose",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.localIdentifier.system",
        "path": "LocationLogicalModel.identifiers.localIdentifier.system",
        "short": "The local or system suppliers identifier namespace",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "uri"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.localIdentifier.value",
        "path": "LocationLogicalModel.identifiers.localIdentifier.value",
        "short": "The value that is unique",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.localIdentifier.period",
        "path": "LocationLogicalModel.identifiers.localIdentifier.period",
        "short": "Time period when id is/was valid for use",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Period"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.identifiers.localIdentifier.assigner",
        "path": "LocationLogicalModel.identifiers.localIdentifier.assigner",
        "short": "Location that issued id (may be just text)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location",
            "aggregation": [
              "referenced"
            ]
          }
        ]
      },
      {
        "id": "LocationLogicalModel.status",
        "path": "LocationLogicalModel.status",
        "short": "Indicates whether the location is still in use.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.name",
        "path": "LocationLogicalModel.name",
        "short": "Name of the location as used by humans",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.description",
        "path": "LocationLogicalModel.description",
        "short": "Description of the location",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "string"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.mode",
        "path": "LocationLogicalModel.mode",
        "short": "Indicates whether a resource instance represents a specific location or a class of locations.",
        "definition": "Instance|Kind",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "code"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.type",
        "path": "LocationLogicalModel.type",
        "short": "Indicates the type of function performed at the location.",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.telecom",
        "path": "LocationLogicalModel.telecom",
        "short": "Contact details of the location",
        "min": 0,
        "max": "*",
        "type": [
          {
            "code": "ContactPoint"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.address",
        "path": "LocationLogicalModel.address",
        "short": "Physical location",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Address"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.physicalType",
        "path": "LocationLogicalModel.physicalType",
        "short": "Physical form of the location",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "CodeableConcept"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.position",
        "path": "LocationLogicalModel.position",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "BackboneElement"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.position.longitude",
        "path": "LocationLogicalModel.position.longitude",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.position.latitude",
        "path": "LocationLogicalModel.position.latitude",
        "min": 1,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.position.altitude",
        "path": "LocationLogicalModel.position.altitude",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "decimal"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.managingOrganization",
        "path": "LocationLogicalModel.managingOrganization",
        "short": "Organization responsible for provisioning and upkeep",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Organization"
          }
        ]
      },
      {
        "id": "LocationLogicalModel.partOf",
        "path": "LocationLogicalModel.partOf",
        "short": "Another Location this one is physically part of",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://hl7.org/fhir/StructureDefinition/Location"
          }
        ]
      }
    ]
  }
}