{
  "resourceType": "CodeSystem",
  "id": "ca-bc-lra-cs-LRAValidationCodes",
  "text": {
    "status": "generated",
    "div": "<div xmlns=\"http://www.w3.org/1999/xhtml\">\n      <p>CodeSystem &quot;LRA Validation Code System&quot;:This code system defines the various validation error codes that are returned by the LRA interface</p>\n      <p>Developed by: PHSA LRA project team (from source systems)</p>\n      <p>Published on July 25, 2024</p>\n      <p>This code system defines the various validation error codes to indicate issues with resources and requests submitted to the LRA interface.:</p>\n      <table class=\"grid\">\n        <tr>\n          <td>\n            <b>Code</b>\n          </td>\n          <td>\n            <b>Display</b>\n          </td>\n          <td>\n            <b>Definition</b>\n          </td>\n        </tr>\n       <tr>\n          <td>pas-msg-001</td>\n          <td>Bundle type should be message</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-msg-002</td>\n          <td>message header is required</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-msg-003</td>\n          <td>group resource is required</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-msg-004</td>\n          <td>patient resource is required</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-msg-005</td>\n          <td>practitioner resource is required</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-msg-006</td>\n          <td>clinic resource is required</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-mh-001</td>\n          <td>eventCoding is missing in the messageHeader</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-mh-002</td>\n          <td>eventCoding.system validation error</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-mh-003</td>\n          <td>eventCode.code is not acceptable</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-mh-004</td>\n          <td>messageHeader missing source or focus</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-mh-005</td>\n          <td>focus.source does not exist</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-mh-006</td>\n          <td>focus.source is referencing to a wrong resource</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-gr-001</td>\n          <td>group.type should be person</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-gr-002</td>\n          <td>group.actual should be true</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-gr-003</td>\n          <td>missing managing entity or  wrong resource</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-gr-004</td>\n          <td>missing panel member or wrong reference</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-pa-001</td>\n          <td>missing panel member or wrong reference</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-pa-002</td>\n          <td>patient missing family name</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-pa-003</td>\n          <td>patient missing first name</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-pa-004</td>\n          <td>patient missing date of birth or birthdate validation error</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-pr-001</td>\n          <td>Missing practitioner identifier</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-pr-002</td>\n          <td>Practitioner missing family name</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-or-001</td>\n          <td>Missing clinic identifier</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-or-002</td>\n          <td>Missing clinic name</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-or-003</td>\n          <td>Missing clinic’s postal code</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>empi-pa-001</td>\n          <td>Patient not found</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>empi-pa-002</td>\n          <td>Patient name is not matched</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>empi-pa-003</td>\n          <td>Patient DOB is not correct</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>plr-pr-001</td>\n          <td>Practitioner MSP ID is not found</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>plr-pr-002</td>\n          <td>Practitioner name is not matched with MSP ID</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>plr-or-001</td>\n          <td>Clinic Id is not found</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>plr-or-002</td>\n          <td>Clinic name is not found</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>plr-or-003</td>\n          <td>Clinic’s postal code is not a match</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-val-001</td>\n          <td>Invalid Patient in PAS</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-val-002</td>\n          <td>Invalid Practitioner in PAS</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-val-003</td>\n          <td>Invalid clinic in PAS</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-err-004</td>\n          <td>Healthcare facility network matching failed</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-err-005</td>\n          <td>Failed to add patient to panel</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-err-006</td>\n          <td>Failed to remove patient from panel</td>\n          <td></td>\n        </tr>\n<tr>\n          <td>pas-err-007</td>\n          <td>Failed to retrieve patient’s MRP status</td>\n          <td></td>\n        </tr>\n      </table>\n</div>"
  },
  "url": "http://phsa.ca/fhir/CodeSystem/ca-bc-lra-cs-LRAValidationCodes",
  "version": "20240725",
  "name": "LRAValidationCodes",
  "title": "LRA Validation Code System",
  "status": "active",
  "experimental": false,
  "date": "2024-07-25",
  "publisher": "Provincial Health Services Authority (BC)",
  "contact": [
    {
      "name": "PHSA LRA Project",
      "telecom": [
        {
          "system": "url",
          "value": "http://phsa.ca"
        }
      ]
    }
  ],
  "description": "This code system defines the various validation error codes to indicate issues with resources and requests submitted to the LRA interface.",
  "caseSensitive": true,
  "content": "complete",
  "count": 40,
  "concept": [
    {
      "code": "pas-msg-001",
      "display": "Bundle type should be message"
    },
    {
      "code": "pas-msg-002",
      "display": "MessageHeader is required"
    },
    {
      "code": "pas-msg-003",
      "display": "Group resource is required"
    },
    {
      "code": "pas-msg-004",
      "display": "Patient resource is required"
    },
    {
      "code": "pas-msg-005",
      "display": "Practitioner resource is required"
    },
    {
      "code": "pas-msg-006",
      "display": "Clinic resource is required"
    },
    {
      "code": "pas-mh-001",
      "display": "EventCoding is missing in messageHeader"
    },
    {
      "code": "pas-mh-002",
      "display": "EventCoding.system validation error"
    },
    {
      "code": "pas-mh-003",
      "display": "EventCode.code is not acceptable"
    },
    {
      "code": "pas-mh-004",
      "display": "Source is required in MessageHeader"
    },
    {
      "code": "pas-mh-005",
      "display": "Focus is required in MessageHeader"
    },
    {
      "code": "pas-mh-006",
      "display": "Focus.source reference is not found in the bundle"
    },
    {
      "code": "pas-mh-007",
      "display": "Focus.source is referencing to a wrong resource"
    },
    {
      "code": "pas-gr-001",
      "display": "Group.type is not acceptable"
    },
    {
      "code": "pas-gr-002",
      "display": "Group.actual is not acceptable"
    },
    {
      "code": "pas-gr-003",
      "display": "ManagingEntity reference is required in the bundle"
    },
    {
      "code": "pas-gr-004",
      "display": "ManagingEntity is referencing to a wrong resource"
    },
    {
      "code": "pas-gr-005",
      "display": "Member list is required in Group resource"
    },
    {
      "code": "pas-gr-006",
      "display": "Panel member is referencing to a wrong resource"
    },
    {
      "code": "pas-pa-001",
      "display": "Patient Identifier is required"
    },
    {
      "code": "pas-pa-002",
      "display": "Patient PHN identifier is required"
    },
    {
      "code": "pas-pa-003",
      "display": "Patient’s family name is required"
    },
    {
      "code": "pas-pa-004",
      "display": "Patient’s first name is required"
    },
    {
      "code": "pas-pa-005",
      "display": "Patient’s date of birth is required"
    },
    {
      "code": "pas-pa-006",
      "display": "Validation error in Patient’s birthdate"
    },
    {
      "code": "pas-pr-001",
      "display": "Practitioner identifier is required"
    },
    {
      "code": "pas-pr-002",
      "display": "Practitioner MSP Id is required in identifier list"
    },
    {
      "code": "pas-pr-003",
      "display": "Practitioner’s family name is required"
    },
    {
      "code": "pas-pr-004",
      "display": "Practitioner’s given name is required"
    },
    {
      "code": "pas-or-001",
      "display": "Clinic identifier is required"
    },
    {
      "code": "pas-or-002",
      "display": "Clinic facility Id is required"
    },
    {
      "code": "pas-or-003",
      "display": "Clinic’s name is required"
    },
    {
      "code": "pas-or-004",
      "display": "Clinic’s postal code is required"
    },
    {
      "code": "pas-empi-001",
      "display": "Patient has not found"
    },
    {
      "code": "pas-empi-002",
      "display": "Patient family name do not match"
    },
    {
      "code": "pas-empi-003",
      "display": "Patient’s given name do not match"
    },
    {
      "code": "pas-empi-004",
      "display": "Patient DOB is not correct"
    },
    {
      "code": "pas-plr-001",
      "display": "Provider MSP Id is not found"
    },
    {
      "code": "pas-plr-002",
      "display": "Provider family name do not match"
    },
    {
      "code": "pas-plr-003",
      "display": "Provider first name do not match"
    },
    {
      "code": "pas-plr-004",
      "display": "Clinic Id is not found"
    },
    {
      "code": "pas-plr-005",
      "display": "Clinic name is not found"
    },
    {
      "code": "pas-plr-006",
      "display": "Clinic’s postal code is not a match"
    },
    {
      "code": "pas-val-001",
      "display": "Unable to complete the request. PAS support team has been notified and will contact you with next steps. No further action is required at this time."
    },
    {
      "code": "pas-val-002",
      "display": "Unable to complete the request. PAS support team has been notified and will contact you with next steps. No further action is required at this time."
    },
    {
      "code": "pas-val-003",
      "display": "Unable to complete the request. PAS support team has been notified and will contact you with next steps. No further action is required at this time."
    },
    {
      "code": "pas-val-004",
      "display": "PAS does not have this provider working in this clinic. Please review this user guide for information on how to be added to that clinic in PAS."
    },
    {
      "code": "pas-err-001",
      "display": "Unable to complete the request. PAS support team has been notified and will contact you with next steps. No further action is required at this time."
    },
    {
      "code": "pas-err-002",
      "display": "Unable to complete the request. PAS support team has been notified and will contact you with next steps. No further action is required at this time."
    },
    {
      "code": "pas-err-003",
      "display": "Unable to complete the request. PAS support team has been notified and will contact you with next steps. No further action is required at this time."
    },
    {
      "code": "auth-err-001",
      "display": "Token Authorization failed"
    },
    {
      "code": "auth-err-002",
      "display": "Processing error. Unable to complete the request. Please Contact your system administrator."
    }
  ]
}