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