When the HL7 Medical Records Chart import process receives a message with a long value in the Medical Service field, the HL7 Listener window may log an error like the following:
-
Failed inserting the medical service code value [CARDIOTHORACIC SURGERY]: allowable length of 20 characters exceeded.
If OnBase is set up to log HL7 errors to the Diagnostics Console, then the error message also is logged to the console's HL7 tab.
This error indicates that the medical service code in the HL7 message is too long. The maximum length allowed is 20 characters. The medical service code typically is specified in the PV1.10 field of the HL7 message.
In this situation, the chart is created successfully, but it is not assigned a medical service.
OnBase Configuration allows you to map descriptions to medical service codes. A short service code, like CTS, can be mapped to a description like CARDIOTHORACIC SURGERY. When an HL7 message specifying a service code of CTS is processed to create a new chart, users who view the chart's demographics (for example, in the Medical Records Unity Client) will see CARDIOTHORACIC SURGERY as the medical service. Service codes are configured under Medical | Service Codes in OnBase Configuration.