{
  "resourceType": "StructureDefinition",
  "url": "http://www.agfa.com/ei/fhir/StructureDefinition/ei-organization",
  "version": "1.0",
  "name": "Enterprise Imaging Organization",
  "status": "draft",
  "date": "2018-04-03T09:28:31.67+00:00",
  "description": "Enterprise Imaging department and facility",
  "fhirVersion": "3.0.1",
  "mapping": [
    {
      "identity": "agfa-ei-model",
      "name": "Enterprise Imaging Date Model",
      "comment": "Enterprise Imaging Date Model"
    }
  ],
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Organization.identifier.use",
        "path": "Organization.identifier.use",
        "max": "0"
      },
      {
        "id": "Organization.identifier.type",
        "path": "Organization.identifier.type",
        "max": "0"
      },
      {
        "id": "Organization.identifier.system",
        "path": "Organization.identifier.system",
        "comment": "when the value is the code from EI, the system is urn:ei:code",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "urn:ei:code"
          }
        ]
      },
      {
        "id": "Organization.identifier.value",
        "path": "Organization.identifier.value",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "IDENTITY_CODE#CODE"
          },
          {
            "identity": "agfa-ei-model",
            "map": "DEPARTMENT#CODE | FACILITY#CODE"
          }
        ]
      },
      {
        "id": "Organization.identifier.period",
        "path": "Organization.identifier.period",
        "max": "0"
      },
      {
        "id": "Organization.identifier.assigner.reference",
        "path": "Organization.identifier.assigner.reference",
        "max": "0"
      },
      {
        "id": "Organization.identifier.assigner.identifier",
        "path": "Organization.identifier.assigner.identifier",
        "max": "0"
      },
      {
        "id": "Organization.identifier.assigner.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Organization.identifier.assigner.display",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "ID_ISSUER"
          }
        ]
      },
      {
        "id": "Organization.active",
        "path": "Organization.active",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "IDENTITY#ACTIVE"
          }
        ]
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "definition": "The kind(s) of organization that this is.\r\nIn  Enterprise Imaging, prov referring to Facility, dept referring to Department",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "DEPARTMENT | FACILITY"
          }
        ]
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "DEPARTMENT#NAME"
          }
        ]
      },
      {
        "id": "Organization.alias",
        "path": "Organization.alias",
        "max": "0"
      },
      {
        "id": "Organization.telecom",
        "path": "Organization.telecom",
        "max": "0"
      },
      {
        "id": "Organization.address",
        "path": "Organization.address",
        "max": "0"
      },
      {
        "id": "Organization.partOf.reference",
        "path": "Organization.partOf.reference",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "FACILITY"
          }
        ]
      },
      {
        "id": "Organization.partOf.display",
        "extension": [
          {
            "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-translatable",
            "valueBoolean": true
          }
        ],
        "path": "Organization.partOf.display",
        "mapping": [
          {
            "identity": "agfa-ei-model",
            "map": "FACILITY#NAME"
          }
        ]
      },
      {
        "id": "Organization.contact",
        "path": "Organization.contact",
        "max": "0"
      },
      {
        "id": "Organization.endpoint",
        "path": "Organization.endpoint",
        "max": "0"
      }
    ]
  }
}