{
  "resourceType": "StructureDefinition",
  "url": "http://bookplan.dk/fhir/StructureDefinition/ArrivalLocation",
  "version": "1.0",
  "name": "ArrivalLocation",
  "status": "active",
  "publisher": "Capgemini Danmark A/S",
  "fhirVersion": "1.0.2",
  "kind": "resource",
  "constrainedType": "Location",
  "abstract": false,
  "contextType": "resource",
  "base": "http://hl7.org/fhir/StructureDefinition/Location",
  "differential": {
    "element": [
      {
        "path": "Location.id",
        "min": 1,
        "maxLength": 36
      },
      {
        "path": "Location.meta",
        "max": "0"
      },
      {
        "path": "Location.implicitRules",
        "max": "0"
      },
      {
        "path": "Location.language",
        "max": "0"
      },
      {
        "path": "Location.text",
        "max": "0"
      },
      {
        "path": "Location.contained",
        "max": "0"
      },
      {
        "path": "Location.identifier",
        "min": 1,
        "max": "1"
      },
      {
        "path": "Location.identifier.id",
        "max": "0"
      },
      {
        "path": "Location.identifier.use",
        "max": "0"
      },
      {
        "path": "Location.identifier.type",
        "max": "0"
      },
      {
        "path": "Location.identifier.system",
        "min": 1,
        "fixedUri": "BookplanArrivalLocationOId"
      },
      {
        "path": "Location.identifier.value",
        "min": 1
      },
      {
        "path": "Location.identifier.period",
        "max": "0"
      },
      {
        "path": "Location.identifier.assigner",
        "max": "0"
      },
      {
        "path": "Location.status",
        "min": 1
      },
      {
        "path": "Location.name",
        "max": "0"
      },
      {
        "path": "Location.description",
        "max": "0"
      },
      {
        "path": "Location.mode",
        "max": "0"
      },
      {
        "path": "Location.type",
        "max": "0"
      },
      {
        "path": "Location.telecom",
        "max": "0"
      },
      {
        "path": "Location.telecom",
        "min": 0,
        "max": "1"
      },
      {
        "path": "Location.telecom.system",
        "min": 1
      },
      {
        "path": "Location.telecom.system",
        "min": 1
      },
      {
        "path": "Location.telecom.value",
        "min": 1,
        "maxLength": 8
      },
      {
        "path": "Location.telecom.use",
        "max": "0"
      },
      {
        "path": "Location.telecom.rank",
        "max": "0"
      },
      {
        "path": "Location.telecom.period",
        "max": "0"
      },
      {
        "path": "Location.address.id",
        "max": "0"
      },
      {
        "path": "Location.address.use",
        "max": "0"
      },
      {
        "path": "Location.address.type",
        "max": "0"
      },
      {
        "path": "Location.address.text",
        "max": "0"
      },
      {
        "path": "Location.address.line",
        "min": 0,
        "max": "1",
        "maxLength": 200
      },
      {
        "path": "Location.address.city",
        "maxLength": 50
      },
      {
        "path": "Location.address.district",
        "max": "0"
      },
      {
        "path": "Location.address.state",
        "max": "0"
      },
      {
        "path": "Location.address.country",
        "max": "0"
      },
      {
        "path": "Location.address.period",
        "max": "0"
      },
      {
        "path": "Location.physicalType",
        "max": "0"
      },
      {
        "path": "Location.position",
        "max": "0"
      },
      {
        "path": "Location.managingOrganization",
        "max": "0"
      },
      {
        "path": "Location.partOf",
        "max": "0"
      },
      {
        "path": "Location.extension",
        "slicing": {
          "discriminator": [
            "url"
          ],
          "rules": "closed"
        }
      },
      {
        "path": "Location.extension",
        "name": "arrivalLocation-site",
        "short": "The arrival location site (dk: Matrikel)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/arrivalLocation-site"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "Location.extension.id",
        "max": "0"
      },
      {
        "path": "Location.extension.valueString",
        "min": 1
      },
      {
        "path": "Location.extension",
        "name": "arrivalLocation-place",
        "short": "The place inside the site to arrive (dk: Sted)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/arrivalLocation-place"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": false
      },
      {
        "path": "Location.extension.id",
        "max": "0"
      },
      {
        "path": "Location.extension.valueString",
        "min": 1
      },
      {
        "path": "Location.extension",
        "name": "partOfHealthOrganization",
        "short": "Whether or not the location is part of a health organization (dk: Del af sundhedsinstitution)",
        "min": 0,
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://bookplan.dk/fhir/StructureDefinition/arrivalLocation-partOfHealthOrganization"
            ]
          }
        ],
        "isModifier": false,
        "isSummary": true
      },
      {
        "path": "Location.extension.id",
        "max": "0"
      },
      {
        "path": "Location.extension.valueBoolean",
        "min": 1
      }
    ]
  }
}