PackagesCanonicalsLogsProblems
    Packages
    ca.infoway.io.psca@2.0.0-DFT-Ballot
    http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/bundle-ca-ps
{
  "description": "This profile represents the constraints applied to the Bundle resource by the PS-CA project.",
  "_filename": "structuredefinition-profile-bundle-ca-ps.json",
  "package_name": "ca.infoway.io.psca",
  "date": "2024-04-09T00:00:00-08:00",
  "derivation": "constraint",
  "publisher": null,
  "fhirVersion": "4.0.1",
  "name": "BundlePSCA",
  "abstract": false,
  "copyright": "Copyright © 2024+ Canada Health Infoway. All rights reserved. [Terms of Use and License Agreements](https://ic.infoway-inforoute.ca/en/about/tou). [Privacy Policy](https://www.infoway-inforoute.ca/en/legal/privacy-policy).",
  "type": "Bundle",
  "experimental": "false",
  "resourceType": "StructureDefinition",
  "title": "Bundle (PS-CA)",
  "package_version": "2.0.0-DFT-Ballot",
  "status": "draft",
  "id": "7bb197c6-292f-40a0-957d-a9e89d48853d",
  "kind": "resource",
  "url": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/bundle-ca-ps",
  "version": null,
  "differential": {
    "element": [ {
      "id": "Bundle",
      "path": "Bundle",
      "short": "PS-CA Bundle",
      "constraint": [ {
        "key": "bdl-ps-1",
        "human": "A PS document must have no additional Composition (including Composition subclass) resources besides the first",
        "severity": "error",
        "expression": "entry.tail().where(resource is Composition).empty()"
      } ],
      "definition": "PS-CA Bundle. \r\nA container for a collection of resources in the patient summary."
    }, {
      "id": "Bundle.identifier",
      "min": 1,
      "path": "Bundle.identifier",
      "mustSupport": true
    }, {
      "id": "Bundle.type",
      "path": "Bundle.type",
      "fixedCode": "document",
      "mustSupport": true
    }, {
      "id": "Bundle.timestamp",
      "min": 1,
      "path": "Bundle.timestamp",
      "mustSupport": true
    }, {
      "id": "Bundle.link",
      "max": "0",
      "path": "Bundle.link"
    }, {
      "id": "Bundle.entry",
      "min": 2,
      "path": "Bundle.entry",
      "short": "Entry resource in the patient summary bundle",
      "comment": "Must contain at a minimum the PS-CA Composition as the first entry (only a single Composition resource may be included) and a Patient Resource. Additional constraints that determine what is included in the bundle are specified in the PS-CA Composition profile.",
      "slicing": {
        "rules": "open",
        "discriminator": [ {
          "path": "resource",
          "type": "type"
        }, {
          "path": "resource",
          "type": "profile"
        } ]
      },
      "definition": "An entry resource included in the patient summary bundle resource.",
      "mustSupport": true
    }, {
      "id": "Bundle.entry.fullUrl",
      "min": 1,
      "path": "Bundle.entry.fullUrl",
      "mustSupport": true
    }, {
      "id": "Bundle.entry.search",
      "max": "0",
      "path": "Bundle.entry.search"
    }, {
      "id": "Bundle.entry.request",
      "max": "0",
      "path": "Bundle.entry.request"
    }, {
      "id": "Bundle.entry.response",
      "max": "0",
      "path": "Bundle.entry.response"
    }, {
      "id": "Bundle.entry:composition",
      "max": "1",
      "min": 1,
      "path": "Bundle.entry",
      "sliceName": "composition",
      "mustSupport": true
    }, {
      "id": "Bundle.entry:composition.resource",
      "min": 1,
      "path": "Bundle.entry.resource",
      "type": [ {
        "code": "Composition",
        "profile": [ "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/composition-ca-ps" ]
      } ],
      "mustSupport": true
    }, {
      "id": "Bundle.entry:patient",
      "max": "1",
      "min": 1,
      "path": "Bundle.entry",
      "sliceName": "patient",
      "mustSupport": true
    }, {
      "id": "Bundle.entry:patient.resource",
      "min": 1,
      "path": "Bundle.entry.resource",
      "type": [ {
        "code": "Patient",
        "profile": [ "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps" ]
      } ],
      "mustSupport": true
    } ]
  },
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Bundle"
}