{
  "resourceType": "StructureDefinition",
  "id": "pcr-parameters-pixm-out",
  "meta": {
    "lastUpdated": "2023-11-08T18:45:25.1813713+00:00"
  },
  "url": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-pcr-pixm-out-profile-Parameters",
  "version": "2.0.0",
  "name": "PCRParametersPixmOut",
  "title": "PCR PIXm Response Parameters Profile",
  "status": "active",
  "date": "2023-11-08T18:47:59.1279117+00:00",
  "description": "This is the Parameters profiles for PIXm repsonse from PCR.",
  "fhirVersion": "4.0.1",
  "kind": "resource",
  "abstract": false,
  "type": "Parameters",
  "baseDefinition": "http://hl7.org/fhir/StructureDefinition/Parameters",
  "derivation": "constraint",
  "differential": {
    "element": [
      {
        "id": "Parameters.id",
        "path": "Parameters.id",
        "short": "random guid",
        "min": 1
      },
      {
        "id": "Parameters.meta",
        "path": "Parameters.meta",
        "min": 1,
        "mustSupport": true
      },
      {
        "id": "Parameters.meta.profile",
        "path": "Parameters.meta.profile",
        "min": 1,
        "max": "1",
        "fixedCanonical": "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-pcr-pixm-out-profile-Parameters|2.0.0",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter",
        "path": "Parameters.parameter",
        "slicing": {
          "discriminator": [
            {
              "type": "value",
              "path": "name"
            }
          ],
          "ordered": false,
          "rules": "open"
        },
        "short": "patient pattern",
        "comment": "If patient is found, there will be one parameter with name \"targetId\" with patient's ECID, and one or more parameters with name \"targetIdentifier\" with patient's identifiers.",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter.name",
        "path": "Parameters.parameter.name",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter.resource",
        "path": "Parameters.parameter.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-pcr-profile-OperationOutcome"
            ]
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:targetId",
        "path": "Parameters.parameter",
        "sliceName": "targetId",
        "short": "contains patient's ECID",
        "definition": "This parameter contains the patient ECID. To retrieve full patient record, use the reference value and proper endpoint to issue patient read request.",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:targetId.name",
        "path": "Parameters.parameter.name",
        "fixedString": "targetId",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:targetId.value[x]",
        "path": "Parameters.parameter.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Parameters.parameter:targetId.value[x]:valueReference",
        "path": "Parameters.parameter.value[x]",
        "sliceName": "valueReference",
        "min": 1,
        "type": [
          {
            "code": "Reference"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:targetId.value[x]:valueReference.reference",
        "path": "Parameters.parameter.value[x].reference",
        "short": "Relative URL to patient's location indicated by the ECID (e.g. /Patient/12345)",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:targetIdentifier",
        "path": "Parameters.parameter",
        "sliceName": "targetIdentifier",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:targetIdentifier.name",
        "path": "Parameters.parameter.name",
        "fixedString": "targetIdentifier",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:targetIdentifier.value[x]",
        "path": "Parameters.parameter.value[x]",
        "slicing": {
          "discriminator": [
            {
              "type": "type",
              "path": "$this"
            }
          ],
          "rules": "closed"
        }
      },
      {
        "id": "Parameters.parameter:targetIdentifier.value[x]:valueIdentifier",
        "path": "Parameters.parameter.value[x]",
        "sliceName": "valueIdentifier",
        "short": "parameter that contains the reference to patient ecid",
        "min": 1,
        "type": [
          {
            "code": "Identifier"
          }
        ],
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:operationoutcome",
        "path": "Parameters.parameter",
        "sliceName": "operationoutcome",
        "max": "1",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:operationoutcome.name",
        "path": "Parameters.parameter.name",
        "fixedString": "warning",
        "mustSupport": true
      },
      {
        "id": "Parameters.parameter:operationoutcome.resource",
        "path": "Parameters.parameter.resource",
        "type": [
          {
            "code": "Resource",
            "profile": [
              "http://ehealthontario.ca/fhir/StructureDefinition/ca-on-pcr-profile-OperationOutcome"
            ]
          }
        ],
        "mustSupport": true
      }
    ]
  }
}