<ValueSet xmlns="http://hl7.org/fhir">
  <id value="er-error-codes" />
  <url value="http://electronichealth.se/fhir/NDI/ValueSet/er-error-codes" />
  <version value="0.1.0" />
  <name value="er-error-codes" />
  <title value="Error codes (ER)" />
  <status value="active" />
  <description value="Includes error and success messages for Endpoint Registry transactions." />
  <compose>
    <include>
      <system value="http://electronichealth.se/CodeSystem/error-codes" />
      <concept>
        <code value="2-38-1" />
        <display value="Required parameter missing." />
      </concept>
      <concept>
        <code value="2-38-2" />
        <display value="Invalid format of personal identity number. Submit the personal identity number using 12 digits without hyphen, e.g. 198001032385." />
      </concept>
      <concept>
        <code value="2-38-4" />
        <display value="Invalid system. Valid systems are %s." />
      </concept>
      <concept>
        <code value="2-38-7" />
        <display value="Invalid format of organization identifier. Submit the organization identifier using 10 digits without hyphen, e.g. 5560269986." />
      </concept>
      <concept>
        <code value="2-38-8" />
        <display value="Device not found." />
      </concept>
      <concept>
        <code value="2-38-9" />
        <display value="Invalid parameter. Valid parameters are %s." />
      </concept>
      <concept>
        <code value="2-38-10" />
        <display value="Parameter %s is not repeatable." />
      </concept>
      <concept>
        <code value="2-38-11" />
        <display value="Invalid format of coordination number. Submit the coordination number using 12 digits without hyphen, e.g. 201903682399." />
      </concept>
      <concept>
        <code value="2-38-12" />
        <display value="Organization could not be added since no endpoint url could be identified." />
      </concept>
      <concept>
        <code value="2-38-13" />
        <display value="Organization could not be added since the organization could not be identified." />
      </concept>
      <concept>
        <code value="2-38-14" />
        <display value="Organization has already been added to the endpoint. If you're trying to update the URL, first remove the organization from the endpoint, and then retry" />
      </concept>
      <concept>
        <code value="2-38-20" />
        <display value="There is no managing organization with the supplied claims.client_id." />
      </concept>
      <concept>
        <code value="2-38-21" />
        <display value="Supplied claims.client_id does not match client_id of the managing organization." />
      </concept>
      <concept>
        <code value="4-38-301" />
        <display value="Organization was successfully added to the endpoint." />
      </concept>
      <concept>
        <code value="4-38-302" />
        <display value="Organization was successfully removed from the endpoint." />
      </concept>
      <concept>
        <code value="4-38-303" />
        <display value="Organization has already been added to the endpoint." />
      </concept>
      <concept>
        <code value="4-38-304" />
        <display value="The organization is not connected to the endpoint and therefore cannot be removed." />
      </concept>
    </include>
  </compose>
</ValueSet>