{
  "resourceType": "StructureDefinition",
  "meta": {
    "lastUpdated": "2017-12-18T14:45:48.702+00:00"
  },
  "url": "http://trilliumbridge.eu/fhir/StructureDefinition/bundle-ips-uv-trillium2",
  "name": "Bundle-ips-uv-trillium2",
  "status": "draft",
  "experimental": true,
  "date": "2017-12-18T11:28:52.952+00:00",
  "publisher": "Trilium II Project",
  "contact": [
    {
      "name": "Giorgio Cangioli",
      "telecom": [
        {
          "system": "email",
          "value": "giorgio.cangioli@gmail.com"
        }
      ]
    }
  ],
  "description": "Bundle containing the Patient Summary and all the referenced resources",
  "fhirVersion": "3.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Bundle",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Bundle.type",
        "path": "Bundle.type",
        "fixedCode": "document"
      },
      {
        "id": "Bundle.total",
        "path": "Bundle.total",
        "max": "0"
      },
      {
        "id": "Bundle.link",
        "path": "Bundle.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry",
        "path": "Bundle.entry",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "resource.meta.profile"
            }
          ],
          "rules": "openAtEnd"
        }
      },
      {
        "id": "Bundle.entry.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry.resource",
        "path": "Bundle.entry.resource",
        "min": 1
      },
      {
        "id": "Bundle.entry.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PatientSummaryComposition",
        "path": "Bundle.entry",
        "sliceName": "PatientSummaryComposition",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:PatientSummaryComposition.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PatientSummaryComposition.resource",
        "path": "Bundle.entry.resource",
        "short": "Patient Summary composition",
        "definition": "The composition defining this Patient Summary."
      },
      {
        "id": "Bundle.entry:PatientSummaryComposition.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PatientSummaryComposition.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:PatientSummaryComposition.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:subjectOfCare",
        "path": "Bundle.entry",
        "sliceName": "subjectOfCare",
        "min": 1,
        "max": "1"
      },
      {
        "id": "Bundle.entry:subjectOfCare.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:subjectOfCare.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:subjectOfCare.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:subjectOfCare.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:author",
        "path": "Bundle.entry",
        "sliceName": "author",
        "min": 1
      },
      {
        "id": "Bundle.entry:author.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:author.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:author.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:author.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:medicationStatement",
        "path": "Bundle.entry",
        "sliceName": "medicationStatement",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:medicationStatement.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:medicationStatement.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:medicationStatement.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:medicationStatement.response",
        "path": "Bundle.entry.response",
        "max": "0"
      },
      {
        "id": "Bundle.entry:deviceUseStatement",
        "path": "Bundle.entry",
        "sliceName": "deviceUseStatement",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:deviceUseStatement.link",
        "path": "Bundle.entry.link",
        "max": "0"
      },
      {
        "id": "Bundle.entry:deviceUseStatement.resource",
        "path": "Bundle.entry.resource",
        "mustSupport": true
      },
      {
        "id": "Bundle.entry:deviceUseStatement.search",
        "path": "Bundle.entry.search",
        "max": "0"
      },
      {
        "id": "Bundle.entry:deviceUseStatement.request",
        "path": "Bundle.entry.request",
        "max": "0"
      },
      {
        "id": "Bundle.entry:deviceUseStatement.response",
        "path": "Bundle.entry.response",
        "max": "0"
      }
    ]
  }
}