{
  "resourceType": "StructureDefinition",
  "id": "0795b878-0c63-47b7-8add-8488207dc7c7",
  "meta": {
    "lastUpdated": "2020-10-08T12:16:38.016+00:00"
  },
  "url": "https://fhir.cambio.se/StructureDefinition/LocationUnitSe/v1",
  "name": "LocationUnitSe",
  "status": "draft",
  "date": "2020-09-10T12:52:58.5436787+00:00",
  "description": "This profile is intended to support getting more comprehensive unit data, as well as updating unit data. It can also be used to populate lists of units where it is not enough with just the minimal unit data such as ids and name.\r\n\r\nThis is a \"closed\" profile.",
  "fhirVersion": "4.0.1",
  "mapping": [
    {
      "identity": "rim",
      "uri": "http://hl7.org/v3",
      "name": "RIM Mapping"
    },
    {
      "identity": "w5",
      "uri": "http://hl7.org/fhir/fivews",
      "name": "FiveWs Pattern Mapping"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Location",
  "baseDefinition": "https://fhir.cambio.se/StructureDefinition/LocationUnitCoreSe/v1",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Location.identifier",
        "path": "Location.identifier",
        "min": 1
      },
      {
        "id": "Location.identifier:hsaId",
        "path": "Location.identifier",
        "sliceName": "hsaId",
        "short": "HSA Identifier for the unit.",
        "definition": "HSA Identifier for the unit. which is a unique code identifying the location."
      },
      {
        "id": "Location.identifier:hsaId.type",
        "path": "Location.identifier.type",
        "max": "0"
      },
      {
        "id": "Location.identifier:hsaId.value",
        "path": "Location.identifier.value",
        "comment": "The actual HSA id"
      },
      {
        "id": "Location.identifier:hsaId.period",
        "path": "Location.identifier.period",
        "max": "0"
      },
      {
        "id": "Location.identifier:hsaId.assigner",
        "path": "Location.identifier.assigner",
        "max": "0"
      },
      {
        "id": "Location.type",
        "path": "Location.type",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Location.type.coding:v3RoleCode",
        "path": "Location.type.coding",
        "sliceName": "v3RoleCode"
      },
      {
        "id": "Location.type.coding:v3RoleCode.code",
        "path": "Location.type.coding.code",
        "comment": "Only supported role codes are included in the value set",
        "binding": {
          "strength": "required",
          "description": "Value set contains the supported role codes",
          "valueSet": "https://fhir.cambio.se/ValueSet/CosmicUnitFunctions/v1"
        }
      },
      {
        "id": "Location.telecom",
        "path": "Location.telecom",
        "comment": "Only phone and email are supported for unit locations"
      },
      {
        "id": "Location.telecom.system",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Location.telecom.system",
        "short": "phone | email",
        "comment": "Only phone and email are supported currently",
        "min": 1,
        "binding": {
          "strength": "required",
          "description": "System for telecome",
          "valueSet": "https://fhir.cambio.se/ValueSet/CosmicUnitContactPointSystems/v1"
        }
      },
      {
        "id": "Location.telecom.value",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Location.telecom.value",
        "min": 1
      },
      {
        "id": "Location.physicalType",
        "path": "Location.physicalType",
        "comment": "Not currently supported",
        "max": "0"
      },
      {
        "id": "Location.position",
        "path": "Location.position",
        "comment": "Not currently supported",
        "max": "0"
      },
      {
        "id": "Location.availabilityExceptions",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-standards-status",
            "valueCode": "normative"
          },
          {
            "url": "http://hl7.org/fhir/StructureDefinition/structuredefinition-normative-version",
            "valueCode": "4.0.0"
          }
        ],
        "path": "Location.availabilityExceptions",
        "comment": "Not currently supported",
        "max": "0"
      },
      {
        "id": "Location.endpoint",
        "path": "Location.endpoint",
        "comment": "Not currently supported",
        "max": "0"
      }
    ]
  }
}