{
  "resourceType": "StructureDefinition",
  "id": "organization-discharge-summary",
  "meta": {
    "versionId": "2",
    "lastUpdated": "2019-09-06T10:21:23+00:00"
  },
  "url": "http://spms.min-saude.pt/fhir/iop/StructureDefinition/organization-discharge-summary",
  "name": "organization-discharge-summary",
  "status": "draft",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Organization",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Organization",
  "derivation": "constraint",
  "snapshot": {},
  "differential": {
    "element": [
      {
        "id": "Organization.id",
        "path": "Organization.id",
        "min": 1
      },
      {
        "id": "Organization.identifier",
        "path": "Organization.identifier",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "system"
            }
          ],
          "rules": "open"
        },
        "min": 1
      },
      {
        "id": "Organization.identifier:sliceIdentifierIDSGES",
        "path": "Organization.identifier",
        "sliceName": "sliceIdentifierIDSGES",
        "max": "1"
      },
      {
        "id": "Organization.identifier:sliceIdentifierIDSGES.system",
        "path": "Organization.identifier.system",
        "fixedUri": "http://spms.min-saude.pt/sges/identifiers/pole-id"
      },
      {
        "id": "Organization.identifier:sliceIdentifierIDInstituicao",
        "path": "Organization.identifier",
        "sliceName": "sliceIdentifierIDInstituicao",
        "max": "1"
      },
      {
        "id": "Organization.identifier:sliceIdentifierIDInstituicao.system",
        "path": "Organization.identifier.system",
        "fixedUri": "http://spms.min-saude.pt/sges/identifiers/entity-id"
      },
      {
        "id": "Organization.identifier:sliceIdentifierIDVAI",
        "path": "Organization.identifier",
        "sliceName": "sliceIdentifierIDVAI"
      },
      {
        "id": "Organization.identifier:sliceIdentifierIDVAI.system",
        "path": "Organization.identifier.system",
        "fixedUri": "http://spms.min-saude.pt/vai/identifiers/entity-id"
      },
      {
        "id": "Organization.type",
        "path": "Organization.type",
        "max": "1"
      },
      {
        "id": "Organization.type.coding",
        "path": "Organization.type.coding",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Organization.name",
        "path": "Organization.name",
        "min": 1
      },
      {
        "id": "Organization.partOf",
        "path": "Organization.partOf",
        "type": [
          {
            "code": "Reference",
            "targetProfile": "http://spms.min-saude.pt/fhir/iop/StructureDefinition/organization-discharge-summary",
            "aggregation": [
              "referenced",
              "bundled"
            ]
          }
        ]
      }
    ]
  }
}