Ansicht
Dokumentation

EXIT_SAPLN206_002 - IS-H*MED: User Exit for Lab Data Transfer in the HL7-Format

EXIT_SAPLN206_002 - IS-H*MED: User Exit for Lab Data Transfer in the HL7-Format

General Material Data   CL_GUI_FRONTEND_SERVICES - Frontend Services  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

This user exit enables you to process enhanced messages in HL7 for each customer when you are transferring lab data. You can also modify lab data after the standard processing of the HL7 segments, before you transfer them as findings via batch input.

The SAP enhancement functions in the function module ISHCM_GET_LAB_DATA_HL7. You call the user exit in the loop by way of the segments of the messages after every standard processing of a segment. Even if you do not process a segment in the standard version, the system will call the user exit.

In the interface all separators will transfer, which are needed for the processing of a segment. The parameter I_SEGMENT contains the message segment. You can modify the general data of laboratory findings (C_LABDOC_DATA), the characteristic of a laboratory value (C_LABOR_RESULT) and the comment for a laboratory value (table CT_LABOR_TEXT).

As an example for the processing of the message segments, you can use the standard routines in the function group N206 (for example, HL7_OBSERVATION_REQUEST).

This user EXIT is only active if the corresponding project is activated in the project management function (transaction CMOD).

Example

Application Example for the Modification of Data

You can convert the data before the system creates findings via batch-input. If a request is made electronically via IS-H*MED and the number range interval is small, then the lab system will link the incoming task date to the request number in order to insure the uniqueness of the task after resetting the interval. When transferring, the number must be separated again in order to determine the appropriate request.

Application Example for the Transfer of Additional Fields

The system will transfer additional fields for the existing segments or new segments from the lab. In this case, the following situation is possible:

The structure N2LABORRESULT contained in the tables N2LABOR001 and N2LABCOMM has an additional customized append structure. The system copies the document category N2_LABOR, adds the new fields and generates the new document category.

The user exit supplies the new fields.

Notes

Further information





Parameters

CT_LABOR_TEXT
C_LABDOC_DATA
C_LABOR_RESULT
I_COMPONENT_SEP
I_ESCAPE_CHAR
I_FIELD_SEP
I_REPETITION_SEP
I_SEGMENT
I_SUBCOMPONENT_SEP

Exceptions

Function Group

XN2LABOR

Addresses (Business Address Services)   ABAP Short Reference  
This documentation is copyright by SAP AG.

Length: 2702 Date: 20240523 Time: 081850     sap01-206 ( 62 ms )