<CodeSystem xmlns="http://hl7.org/fhir">
  <id value="EMS-EventMessageResponseCode-1" />
  <url value="https://fhir.nhs.uk/STU3/CodeSystem/EMS-EventMessageResponseCode-1" />
  <version value="1.0.0" />
  <name value="EMS Event Message Response Code" />
  <status value="draft" />
  <date value="2017-12-04T00:00:00+00:00" />
  <publisher value="NHS Digital" />
  <contact>
    <name value="Interoperability Team" />
    <telecom>
      <system value="email" />
      <value value="interoperabilityteam@nhs.net" />
      <use value="work" />
    </telecom>
  </contact>
  <description value="A CodeSystem to identify the response associated with the event message." />
  <copyright value="Copyright © 2017 NHS Digital" />
  <caseSensitive value="true" />
  <content value="complete" />
  <concept>
    <code value="R00" />
    <display value="Message success" />
    <definition value="Message Success" />
  </concept>
  <concept>
    <code value="R01" />
    <display value="Invalid NHS number format" />
    <definition value="The NHS number provided in the message is not valid (based on being 10 digits long and the 10th digit being a check digit)" />
  </concept>
  <concept>
    <code value="R02" />
    <display value="NHS Number Does Not Exist on PDS" />
    <definition value="The NHS number provided in the message does not match on PDS" />
  </concept>
  <concept>
    <code value="R03" />
    <display value="NHS Number Does Not Match Name And/Or/Gender And/Or DOB" />
    <definition value="The NHS number provided in the message does not match the name and/or gender and/or DOB on PDS" />
  </concept>
  <concept>
    <code value="R04" />
    <display value="Service Not Entitled to Publish Event Type XXX" />
    <definition value="The event type published is not allowed to be published by service YYY" />
  </concept>
  <concept>
    <code value="R05" />
    <display value="Supplier not accredited to publish messages" />
    <definition value="The supplier system publishing the message has not been through the accreditation process" />
  </concept>
  <concept>
    <code value="R06" />
    <display value="Provider not accredited to publish messages" />
    <definition value="The provider publishing the message has not been through the accreditation process" />
  </concept>
  <concept>
    <code value="R07" />
    <display value="SNOMED code does not exist" />
    <definition value="The SNOMED code supplied in the FHIR message does " />
  </concept>
  <concept>
    <code value="R08" />
    <display value="Incorrect message format" />
    <definition value="Message is not in XML or JSON format" />
  </concept>
  <concept>
    <code value="R09" />
    <display value="Incorrect Event" />
    <definition value="The received event is not a recognised event" />
  </concept>
  <concept>
    <code value="R10" />
    <display value="Event does not conform" />
    <definition value="The received event does not conform to the associated event type scheme" />
  </concept>
</CodeSystem>