{
  "resourceType": "StructureDefinition",
  "id": "procedure-ca-ps",
  "url": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/procedure-ca-ps",
  "name": "ProcedurePSCA",
  "title": "Procedure (PS-CA)",
  "status": "draft",
  "experimental": false,
  "date": "2023-11-06T09:23:00+00:00",
  "description": "This profile represents the constraints applied to the Procedure resource by the PS-CA project, which is informed by the constraints of the [Procedure IPS-UV profile](http://hl7.org/fhir/uv/ips/StructureDefinition-Procedure-uv-ips.html) and the [Canadian Baseline Profile](http://build.fhir.org/ig/HL7-Canada/ca-baseline/branches/master/StructureDefinition-profile-procedure.html) to allow for cross-border and cross-jurisdiction sharing of History of Procedure information.",
  "copyright": "Copyright © 2021,2022 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).",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Procedure",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Procedure",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Procedure.status",
        "path": "Procedure.status",
        "mustSupport": true
      },
      {
        "id": "Procedure.code",
        "path": "Procedure.code",
        "definition": "Identification of the procedure or recording of \"absence of relevant procedures\" or of \"procedures unknown\".",
        "comment": "Many Canadian implementations use codes from either SNOMED CT and the SNOMED CT Canada Extension to describe this concept, while others may still be using localized code systems or text descriptions. The Procedures - IPS ValueSet contains codes that are subsumed within the SNOMED CT CA ProcedureCode ValueSet that is preferred for this element.\n\nFuture releases of PS-CA may require use of coded entries. In this release, however, implementations that support codings are encouraged to send the codings for codeable concepts if they are available. Consistent with FHIR best practice, receivers should not produce failures or rejections if codings are received. Vendors should expect that some jurisdictions may further constrain support of this element within the context of their own jurisdictional content.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/CodeableConcept-ca-ps"
            ]
          }
        ],
        "min": 1,
        "max": "1",
        "mustSupport": true,
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "ProcedureCode"
            },
            {
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://fhir.infoway-inforoute.ca/io/psca/ValueSet/CCI"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "While not the preferred terminology for broader pan-Canadian exchange use cases, this additional binding is surfaced to socialize the value sets that may be more commonly in use. Where multiple codings can be supplied, it is encouraged to supply the original coding alongside the pan-Canadian preferred terminology. Any code from CCI."
                }
              ],
              "url": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/additional-binding-test"
            },
            {
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://fhir.infoway-inforoute.ca/io/psca/ValueSet/ICD9CM"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "While not the preferred terminology for broader pan-Canadian exchange use cases, this additional binding is surfaced to socialize the value sets that may be more commonly in use. Where multiple codings can be supplied, it is encouraged to supply the original coding alongside the pan-Canadian preferred terminology. Any code from ICD-9 CM."
                },
                {
                  "url": "shortDoco",
                  "valueString": "ICD 9 CM Codes"
                }
              ],
              "url": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/additional-binding-test"
            },
            {
              "extension": [
                {
                  "url": "purpose",
                  "valueCode": "candidate"
                },
                {
                  "url": "valueSet",
                  "valueCanonical": "http://hl7.org/fhir/uv/ips/ValueSet/absent-or-unknown-procedures-uv-ips"
                },
                {
                  "url": "documentation",
                  "valueMarkdown": "Code to identify absent or unknown procedures."
                }
              ],
              "url": "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/additional-binding-test"
            }
          ],
          "strength": "preferred",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/procedurecode"
        }
      },
      {
        "id": "Procedure.subject",
        "path": "Procedure.subject",
        "definition": "The person on which the procedure was performed.",
        "type": [
          {
            "code": "Reference",
            "targetProfile": [
              "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/patient-ca-ps"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Procedure.subject.reference",
        "path": "Procedure.subject.reference",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Procedure.performed[x]",
        "path": "Procedure.performed[x]",
        "min": 1,
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Procedure.performed[x].extension",
        "path": "Procedure.performed[x].extension",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "url"
            }
          ],
          "rules": "open"
        }
      },
      {
        "id": "Procedure.performed[x].extension:data-absent-reason",
        "path": "Procedure.performed[x].extension",
        "sliceName": "data-absent-reason",
        "short": "performed[x] absence reason",
        "definition": "Provides a reason why the performed is missing.",
        "comment": "Some Canadian implementations cannot guarantee that a procedure performed date will always be available in every instance of legacy data. Any implementers who do not require a performed date be available on every procedure need to be able to produce a dataAbsentReason extension in order to be conformant",
        "max": "1",
        "type": [
          {
            "code": "Extension",
            "profile": [
              "http://hl7.org/fhir/StructureDefinition/data-absent-reason"
            ]
          }
        ]
      },
      {
        "id": "Procedure.bodySite",
        "path": "Procedure.bodySite",
        "comment": "IPS-UV no longer flags this as a Must Support Element. It is not currently flagged as Must Support in PS-CA, as stakeholders have indicated the element may not be supported by the majority of systems today. Systems that do support the element are encouraged to include it in generated Patient Summary documents, and support it when received.",
        "type": [
          {
            "code": "CodeableConcept",
            "profile": [
              "http://fhir.infoway-inforoute.ca/io/psca/StructureDefinition/CodeableConcept-ca-ps"
            ]
          }
        ],
        "binding": {
          "extension": [
            {
              "url": "http://hl7.org/fhir/StructureDefinition/elementdefinition-bindingName",
              "valueString": "BodySite"
            }
          ],
          "strength": "preferred",
          "valueSet": "https://fhir.infoway-inforoute.ca/ValueSet/anatomicaloracquiredbodystructurecode"
        }
      }
    ]
  }
}