@prefix fhir: <http://hl7.org/fhir/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .

# - resource -------------------------------------------------------------------

[] a fhir:CodeSystem ;
  fhir:id [ fhir:v "v2-0357"] ;
  fhir:text [
     fhir:status [ fhir:v "generated" ]
  ] ;
  fhir:extension ( [
     fhir:url [ fhir:v "http://hl7.org/fhir/StructureDefinition/structuredefinition-wg" ] ;
     fhir:value [ fhir:v "inm" ]
  ] ) ;
  fhir:url [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0357"], [ fhir:v "http://terminology.hl7.org/CodeSystem/v2-0357"] ;
  fhir:identifier ( [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.18.217" ]
  ] [
     fhir:system [ fhir:v "urn:ietf:rfc:3986" ] ;
     fhir:value [ fhir:v "urn:oid:2.16.840.1.113883.18.217" ]
  ] ) ;
  fhir:version [ fhir:v "2.0.0"], [ fhir:v "2.0.0"] ;
  fhir:name [ fhir:v "MessageErrorCondition"], [ fhir:v "MessageErrorCondition"] ;
  fhir:title [ fhir:v "messageErrorCondition"], [ fhir:v "messageErrorCondition"] ;
  fhir:status [ fhir:v "active"], [ fhir:v "active"] ;
  fhir:experimental [ fhir:v "false"], [ fhir:v "false"] ;
  fhir:date [ fhir:v "2019-12-01"], [ fhir:v "2019-12-01"] ;
  fhir:publisher [ fhir:v "Health Level Seven International"], [ fhir:v "Health Level Seven International"] ;
  fhir:contact ( [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "hq@HL7.org" ]
     ] )
  ] [
     fhir:telecom ( [
       fhir:system [ fhir:v "url" ] ;
       fhir:value [ fhir:v "http://hl7.org" ]
     ] [
       fhir:system [ fhir:v "email" ] ;
       fhir:value [ fhir:v "hq@HL7.org" ]
     ] )
  ] ) ;
  fhir:description [ fhir:v "HL7-defined code system of concepts specifying the HL7 (communications) error code.  Used in the ERR segment in HL7 Version 2.x messaging."], [ fhir:v "HL7-defined code system of concepts specifying the HL7 (communications) error code.  Used in the ERR segment in HL7 Version 2.x messaging."] ;
  fhir:purpose [ fhir:v "Underlying Master Code System for V2 table 0357 (Message Error Condition Codes)"], [ fhir:v "Underlying Master Code System for V2 table 0357 (Message Error Condition Codes)"] ;
  fhir:copyright [ fhir:v "This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license.html"], [ fhir:v "This material derives from the HL7 Terminology (THO). THO is copyright ©1989+ Health Level Seven International and is made available under the CC0 designation. For more licensing information see: https://terminology.hl7.org/license.html"] ;
  fhir:caseSensitive [ fhir:v "true"] ;
  fhir:valueSet [ fhir:v "http://terminology.hl7.org/ValueSet/v2-0357"] ;
  fhir:hierarchyMeaning [ fhir:v "is-a"] ;
  fhir:compositional [ fhir:v "false"] ;
  fhir:versionNeeded [ fhir:v "false"] ;
  fhir:content [ fhir:v "complete"] ;
  fhir:property ( [
     fhir:code [ fhir:v "status" ] ;
     fhir:uri [ fhir:v "http://terminology.hl7.org/CodeSystem/utg-concept-properties#status" ] ;
     fhir:description [ fhir:v "Status of the concept" ] ;
     fhir:type [ fhir:v "code" ]
  ] [
     fhir:code [ fhir:v "deprecated" ] ;
     fhir:uri [ fhir:v "http://terminology.hl7.org/CodeSystem/utg-concept-properties#v2-table-deprecated" ] ;
     fhir:description [ fhir:v "Version of HL7 in which the code was deprecated" ] ;
     fhir:type [ fhir:v "code" ]
  ] [
     fhir:code [ fhir:v "v2-concComment" ] ;
     fhir:uri [ fhir:v "http://terminology.hl7.org/CodeSystem/utg-concept-properties#v2-concComment" ] ;
     fhir:description [ fhir:v "V2 Concept Comment" ] ;
     fhir:type [ fhir:v "string" ]
  ] [
     fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
     fhir:uri [ fhir:v "http://terminology.hl7.org/CodeSystem/utg-concept-properties#v2-concCommentAsPub" ] ;
     fhir:description [ fhir:v "V2 Concept Comment As Published" ] ;
     fhir:type [ fhir:v "string" ]
  ] ) ;
  fhir:concept ( [
     fhir:id [ fhir:v "3570" ] ;
     fhir:code [ fhir:v "0" ] ;
     fhir:display [ fhir:v "Message accepted" ] ;
     fhir:definition [ fhir:v "Message accepted" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Nachricht akzeptiert" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Success. Optional, as the AA conveys success. Used for systems that must always return a status code." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Success. Optional, as the AA conveys success. Used for systems that must always return a status code." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3571" ] ;
     fhir:code [ fhir:v "100" ] ;
     fhir:display [ fhir:v "Segment sequence error" ] ;
     fhir:definition [ fhir:v "Segment sequence error" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Fehler in der Segmentreihenfolge" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Error: The message segments were not in the proper order, or required segments are missing." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Error: The message segments were not in the proper order, or required segments are missing." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3572" ] ;
     fhir:code [ fhir:v "101" ] ;
     fhir:display [ fhir:v "Required field missing" ] ;
     fhir:definition [ fhir:v "Required field missing" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "erforderliches Feld leer" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Error: A required field is missing from a segment" ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Error: A required field is missing from a segment" ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3573" ] ;
     fhir:code [ fhir:v "102" ] ;
     fhir:display [ fhir:v "Data type error" ] ;
     fhir:definition [ fhir:v "Data type error" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Datentypfehler" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Error: The field contained data of the wrong data type, e.g., an NM field contained \"FOO\"." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Error: The field contained data of the wrong data type, e.g., an NM field contained \"FOO\"." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3574" ] ;
     fhir:code [ fhir:v "103" ] ;
     fhir:display [ fhir:v "Table value not found" ] ;
     fhir:definition [ fhir:v "Table value not found" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "fehlender Eintrag in der Tabelle" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Error: A field of data type ID or IS was compared against the corresponding table, and no match was found." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Error: A field of data type ID or IS was compared against the corresponding table, and no match was found." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3575" ] ;
     fhir:code [ fhir:v "104" ] ;
     fhir:display [ fhir:v "Value too long" ] ;
     fhir:definition [ fhir:v "Value too long" ] ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Error: a value exceeded the normative length, or the length that the application is able to safely handle." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Error: a value exceeded the normative length, or the length that the application is able to safely handle." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3576" ] ;
     fhir:code [ fhir:v "198" ] ;
     fhir:display [ fhir:v "Non-Conformant Cardinality" ] ;
     fhir:definition [ fhir:v "An error has been encountered related to HL7 message content. Message is not -conformant with the applicable specification’s (base standard, conformance profile or implementation profile)  cardinality." ] ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Error: Cardinality is listed as [0..3] and more than 3 of the identified element are present in the message." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "N" ]
     ] )
  ] [
     fhir:id [ fhir:v "3577" ] ;
     fhir:code [ fhir:v "199" ] ;
     fhir:display [ fhir:v "Other HL7 Error" ] ;
     fhir:definition [ fhir:v "Any other error with the HL7 syntax that is not captured in any of the other error codes in this set." ] ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Error" ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "N" ]
     ] )
  ] [
     fhir:id [ fhir:v "3578" ] ;
     fhir:code [ fhir:v "200" ] ;
     fhir:display [ fhir:v "Unsupported message type" ] ;
     fhir:definition [ fhir:v "Unsupported message type" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Nachrichtentyp wird nicht unterstützt" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Rejection: The Message Type is not supported." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection: The Message Type is not supported." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3579" ] ;
     fhir:code [ fhir:v "201" ] ;
     fhir:display [ fhir:v "Unsupported event code" ] ;
     fhir:definition [ fhir:v "Unsupported event code" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Ereignis wird nicht unterstützt" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Rejection: The Event Code is not supported." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection: The Event Code is not supported." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3580" ] ;
     fhir:code [ fhir:v "202" ] ;
     fhir:display [ fhir:v "Unsupported processing id" ] ;
     fhir:definition [ fhir:v "Unsupported processing id" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Processing-ID wird nicht unterstützt" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Rejection: The Processing ID is not supported." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection: The Processing ID is not supported." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3581" ] ;
     fhir:code [ fhir:v "203" ] ;
     fhir:display [ fhir:v "Unsupported version id" ] ;
     fhir:definition [ fhir:v "Unsupported version id" ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Version wird nicht unterstützt" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "Rejection:  The Version ID is not supported." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection:  The Version ID is not supported." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] [
     fhir:id [ fhir:v "3582" ] ;
     fhir:code [ fhir:v "204" ] ;
     fhir:display [ fhir:v "Unknown key identifier" ] ;
     fhir:definition [ fhir:v "Retained for backwards compatibility only: This situation should be reported in ERR-5 (Application Error Code) using code 101 (Unknown Key Identifier) from code system HL70533." ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Schlüsselwert nicht gefunden" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "ERR-3 (HL7 Error Code) should be used to convey errors at the structural level and this is an application level error, which should be reported in ERR-5 (Application Error Code)." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection: The ID of the patient, order, etc., was not found. Used for transactions other than additions, e.g., transfer of a non-existent patient." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "B" ]
     ] )
  ] [
     fhir:id [ fhir:v "3583" ] ;
     fhir:code [ fhir:v "205" ] ;
     fhir:display [ fhir:v "Duplicate key identifier" ] ;
     fhir:definition [ fhir:v "Retained for backwards compatibility only: This situation should be reported in ERR-5 (Application Error Code) using code 102 (Duplicate Key Identifier) from code system HL70533." ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "doppelter Schlüsselwert" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "ERR-3 (HL7 Error Code) should be used to convey errors at the structural level and this is an application level error, which should be reported in ERR-5 (Application Error Code)." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection: The ID of the patient, order, etc., already exists. Used in response to addition transactions (Admit, New Order, etc.)." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "B" ]
     ] )
  ] [
     fhir:id [ fhir:v "3584" ] ;
     fhir:code [ fhir:v "206" ] ;
     fhir:display [ fhir:v "Application record locked" ] ;
     fhir:definition [ fhir:v "Retained for backwards compatibility only: This situation should be reported in ERR-5 (Application Error Code) using code 103 (Application record locked) from code system HL70533." ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "Datensatz durch Applikation gesperrt" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "ERR-3 (HL7 Error Code) should be used to convey errors at the structural level and this is an application level error, which should be reported in ERR-5 (Application Error Code)." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection: The transaction could not be performed at the application storage level, e.g., database locked." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "B" ]
     ] )
  ] [
     fhir:id [ fhir:v "3585" ] ;
     fhir:code [ fhir:v "207" ] ;
     fhir:display [ fhir:v "Application error" ] ;
     fhir:definition [ fhir:v "An application level error has occurred and the detail for that error is identified in ERR-5." ] ;
     fhir:designation ( [
       fhir:language [ fhir:v "de" ] ;
       fhir:use [
         fhir:system [ fhir:v "http://terminology.hl7.org/CodeSystem/hl7TermMaintInfra" ] ;
         fhir:code [ fhir:v "preferredForLanguage" ]
       ] ;
       fhir:value [ fhir:v "applikationsinterner Fehler" ]
     ] ) ;
     fhir:property ( [
       fhir:code [ fhir:v "v2-concComment" ] ;
       fhir:value [ fhir:v "This value is used when no other value in this list is applicable and there is an application error reported in ERR-5. It is applicable when ERR-3 is required in an implementation guide." ]
     ] [
       fhir:code [ fhir:v "v2-concCommentAsPub" ] ;
       fhir:value [ fhir:v "Rejection: A catchall for internal errors not explicitly covered by other codes." ]
     ] [
       fhir:code [ fhir:v "status" ] ;
       fhir:value [ fhir:v "A" ]
     ] )
  ] ) .

# -------------------------------------------------------------------------------------

