We have tried to solve this issue ourselves as follows:

We have changed the method's output parameter, from an Ens.Response to an %XML.String(MAXLEN=""):

Before:

Method ProcesarPeticion(MSH As hl7.MSH.CONTENT, NTE As hl7.NTE.CONTENT, ORMO01PATIENT As hl7.ORMO01.PATIENT.CONTENT(XMLNAME="ORM_O01.PATIENT"), ORMO01ORDER As hl7.ORMO01.ORDER.CONTENT(XMLNAME="ORM_O01.ORDER"), SFT As hl7.SFT.CONTENT, MSA As hl7.MSA.CONTENT, ERR As hl7.ERR.CONTENT) As Mensajes.Response.Peticiones.Derivaciones.EnvioPeticiones.operacionResponse [ Final, ProcedureBlock = 1, SoapAction = "http://FUERTEVENTURA.Servicios/Asentimientos/ProcesarACK", SoapBindingStyle = document, SoapBodyUse = literal, SoapMessageName = ACK, SoapRequestMessage = ORM_O01, WebMethod ]

After:

Method ProcesarPeticion(MSH As hl7.MSH.CONTENT, NTE As hl7.NTE.CONTENT, ORMO01PATIENT As hl7.ORMO01.PATIENT.CONTENT(XMLNAME="ORM_O01.PATIENT"), ORMO01ORDER As hl7.ORMO01.ORDER.CONTENT(XMLNAME="ORM_O01.ORDER"), SFT As hl7.SFT.CONTENT, MSA As hl7.MSA.CONTENT, ERR As hl7.ERR.CONTENT) As %XML.String(MAXLEN="") [ Final, ProcedureBlock = 1, SoapAction = "http://FUERTEVENTURA.Servicios/Asentimientos/ProcesarACK", SoapBindingStyle = document, SoapBodyUse = literal, SoapMessageName = ACK, SoapRequestMessage = ORM_O01, WebMethod ]

In addition we have converted the Ens.Response Message to XML with the following code:

;30/01/2024 convertir a XML para quitar las etiquetas SOAP sobrantes:
set writer=##class(%XML.Writer).%New()
set status=writer.OutputToString()
If $$$ISERR(status) Do $system.OBJ.DisplayError(status)
set status=writer.RootObject(response)
If $$$ISERR(status) Do $system.OBJ.DisplayError(status) set pResponse = writer.GetXMLString()
$$$LOGALERT("pResponse: "_pResponse) ;set inicioCabeceras = "<?xml version=""1.0"" encoding=""UTF-8""?><ACK xmlns=""urn:hl7-org:v2xml"">"
;$$$LOGINFO("inicioCabeceras: "_inicioCabeceras)
set sinInicio = $PIECE(pResponse,"<operacionResponse>",2)
$$$LOGINFO("sinInicio: "_sinInicio)
set sinInicioFinal = $PIECE(sinInicio,"</operacionResponse>",1)
$$$LOGINFO("sinInicioFinal: "_sinInicioFinal)
set finalCabeceras = "</ACK>"
$$$LOGINFO("finalCabeceras: "_finalCabeceras)
;set mensajeACKcompleto = inicioCabeceras_sinInicioFinal_finalCabeceras
set mensajeACKcompleto = sinInicioFinal
$$$LOGINFO("mensajeACKcompleto: "_mensajeACKcompleto) ;quit response
quit mensajeACKcompleto
 

Being the Service's full code as we show:

Class Servicios.Peticiones.Derivaciones.Gestionv01r00 Extends EnsLib.SOAP.Service [ ClassType = "", Inheritance = right, ProcedureBlock ]
{

Parameter ADAPTER = "EnsLib.SOAP.InboundAdapter";

/// Nombre del WebService.
Parameter SERVICENAME = "Gestion";

/// Namespace SOAP para el Servicio Web
Parameter NAMESPACE = "urn:hl7-org:v2xml";

/// Se utilizarán namespaces de clases referenciadas en WSDL.
Parameter USECLASSNAMESPACES = 1;

Method ProcesarPeticion(MSH As hl7.MSH.CONTENT, NTE As hl7.NTE.CONTENT, ORMO01PATIENT As hl7.ORMO01.PATIENT.CONTENT(XMLNAME="ORM_O01.PATIENT"), ORMO01ORDER As hl7.ORMO01.ORDER.CONTENT(XMLNAME="ORM_O01.ORDER"), SFT As hl7.SFT.CONTENT, MSA As hl7.MSA.CONTENT, ERR As hl7.ERR.CONTENT) As %XML.String(MAXLEN="") [ Final, ProcedureBlock = 1, SoapAction = "http://FUERTEVENTURA.Servicios/Asentimientos/ProcesarACK", SoapBindingStyle = document, SoapBodyUse = literal, SoapMessageName = ACK, SoapRequestMessage = ORM_O01, WebMethod ]
{
	set request = ##class(Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest).%New()
	set request.MSH = MSH
	do request.NTE.Insert(NTE)
	set request.ORMO01PATIENT = ORMO01PATIENT
	do request.ORMO01ORDER.Insert(ORMO01ORDER)
	
	set tSC = ..SendRequestSync("EnrutadorGestionDerivaciones",request,.response)
	
	;30/01/2024 convertir a XML para quitar las etiquetas SOAP sobrantes:
	set writer=##class(%XML.Writer).%New()
	set status=writer.OutputToString()
	If $$$ISERR(status)

	Do $system.OBJ.DisplayError(status)
	set status=writer.RootObject(response)
	If $$$ISERR(status) Do $system.OBJ.DisplayError(status)

	set pResponse = writer.GetXMLString()
	$$$LOGALERT("pResponse: "_pResponse)
	
	;set inicioCabeceras = "<?xml version=""1.0"" encoding=""UTF-8""?><ACK xmlns=""urn:hl7-org:v2xml"">"
	;$$$LOGINFO("inicioCabeceras: "_inicioCabeceras)
	set sinInicio = $PIECE(pResponse,"<operacionResponse>",2)
	$$$LOGINFO("sinInicio: "_sinInicio)
	set sinInicioFinal = $PIECE(sinInicio,"</operacionResponse>",1)
	$$$LOGINFO("sinInicioFinal: "_sinInicioFinal)
	set finalCabeceras = "</ACK>"
	$$$LOGINFO("finalCabeceras: "_finalCabeceras)
	;set mensajeACKcompleto = inicioCabeceras_sinInicioFinal_finalCabeceras
	set mensajeACKcompleto = sinInicioFinal
	$$$LOGINFO("mensajeACKcompleto: "_mensajeACKcompleto)
	
	;quit response
	quit mensajeACKcompleto
}

Method OnProcessInput(pInput As EnsLib.HL7.Message) As %Status
{
   Quit ..SendRequestAsync("EnrutadorGestionDerivaciones",pInput)
}

}

When we execute it, the $$$LOGINFO("mensajeACKcompleto: "_mensajeACKcompleto) does outputs the desired output:

<MSH xmlns:s01="urn:hl7-org:v2xml">
	<s01:MSH.1>|</s01:MSH.1>
	<s01:MSH.2>
		<![CDATA[^~\&]]>
	</s01:MSH.2>
	<s01:MSH.3>
		<s01:HD.1>sistemaExterno</s01:HD.1>
	</s01:MSH.3>
	<s01:MSH.4>
		<s01:HD.1>scs</s01:HD.1>
		<s01:HD.2>350290</s01:HD.2>
	</s01:MSH.4>
	<s01:MSH.5>
		<s01:HD.1>HGF</s01:HD.1>
	</s01:MSH.5>
	<s01:MSH.6>
		<s01:HD.1>EXTHL7</s01:HD.1>
	</s01:MSH.6>
	<s01:MSH.7>
		<s01:TS.1>20240130110908</s01:TS.1>
	</s01:MSH.7>
	<s01:MSH.9>
		<s01:MSG.1>ACK</s01:MSG.1>
	</s01:MSH.9>
	<s01:MSH.10>70589905</s01:MSH.10>
	<s01:MSH.11>
		<s01:PT.1>P</s01:PT.1>
	</s01:MSH.11>
	<s01:MSH.12>
		<s01:VID.1>2.5</s01:VID.1>
	</s01:MSH.12>
	<s01:MSH.13>1</s01:MSH.13>
	<s01:MSH.15>AL</s01:MSH.15>
	<s01:MSH.16>AL</s01:MSH.16>
	<s01:MSH.18>ASCII</s01:MSH.18>
</MSH>
<MSA xmlns:s01="urn:hl7-org:v2xml">
	<s01:MSA.1>AA</s01:MSA.1>
</MSA>

However, when we see the response being replied by the SOAP Service to the SoapUI it shows the extra XML tag "<ProcesarPeticionResult>":

<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:s="http://www.w3.org/2001/XMLSchema">
	<SOAP-ENV:Body>
		<ACK xmlns="urn:hl7-org:v2xml">
			<ProcesarPeticionResult>
				<MSH xmlns:s01="urn:hl7-org:v2xml">
					<s01:MSH.1>|</s01:MSH.1>
					<s01:MSH.2>^~\&amp;</s01:MSH.2>
					<s01:MSH.3>
						<s01:HD.1>sistemaExterno</s01:HD.1>
					</s01:MSH.3>
					<s01:MSH.4>
						<s01:HD.1>scs</s01:HD.1>
						<s01:HD.2>350290</s01:HD.2>
					</s01:MSH.4>
					<s01:MSH.5>
						<s01:HD.1>HGF</s01:HD.1>
					</s01:MSH.5>
					<s01:MSH.6>
						<s01:HD.1>EXTHL7</s01:HD.1>
					</s01:MSH.6>
					<s01:MSH.7>
						<s01:TS.1>20240130110908</s01:TS.1>
					</s01:MSH.7>
					<s01:MSH.9>
						<s01:MSG.1>ACK</s01:MSG.1>
					</s01:MSH.9>
					<s01:MSH.10>70589905</s01:MSH.10>
					<s01:MSH.11>
						<s01:PT.1>P</s01:PT.1>
					</s01:MSH.11>
					<s01:MSH.12>
						<s01:VID.1>2.5</s01:VID.1>
					</s01:MSH.12>
					<s01:MSH.13>1</s01:MSH.13>
					<s01:MSH.15>AL</s01:MSH.15>
					<s01:MSH.16>AL</s01:MSH.16>
					<s01:MSH.18>ASCII</s01:MSH.18>
				</MSH>
				<MSA xmlns:s01="urn:hl7-org:v2xml">
					<s01:MSA.1>AA</s01:MSA.1>
				</MSA>
			</ProcesarPeticionResult>
		</ACK>
	</SOAP-ENV:Body>
</SOAP-ENV:Envelope>

How could we achieve to remove the undesired "<ProcesarPeticionResult>" XML tag?

Thanks for your time.

Thanks for your help.

Thanks for your replies.

Could you please, help us? By pointing some documentation or linking to some example to address this need?

Thanks for your answers.

Thanks  @Shanshan Yu it worked as expected.

We have changed both ESBSSCC's and ESBCHUIMI's NAMESPACE to be: http://SIPRESatelites/SIPRESatelites.wsdl

So then ESBSSCC's SOAP Header class is:

Class EsquemasDatos.ProgramasAsistenciales.DragoAE.tns.CredencialesType Extends (%Persistent, %SOAP.Header) [ ProcedureBlock ]
{

Parameter ELEMENTQUALIFIED = 1;

Parameter NAMESPACE = "http://SIPRESatelites/SIPRESatelites.wsdl";

// Parameter NAMESPACE = "http://SCS.Servicios/ProgramasAsistenciales";

Parameter XMLFORMAT = "literal";

Parameter XMLNAME = "Credenciales";

Parameter XMLSEQUENCE = 1;

Property usuario As %String(MAXLEN = "", XMLNAME = "usuario") [ Required ];

Property password As %String(MAXLEN = "", XMLNAME = "password") [ Required ];

And then, ESBCHUIMI's SOAP Header class as the same NAMESPACE:

Class EsquemasDatos.ProgramasAsistenciales.DragoAE.tns.CredencialesType Extends (%Persistent, %SOAP.Header) [ ProcedureBlock ]
{

Parameter ELEMENTQUALIFIED = 1;

Parameter NAMESPACE = "http://SIPRESatelites/SIPRESatelites.wsdl";

// Parameter NAMESPACE = "http://SCS.Servicios/SIPRESatelites";

Parameter XMLNAME = "CredencialesType";

Parameter XMLSEQUENCE = 1;

Property usuario As %String(MAXLEN = "", XMLNAME = "usuario") [ Required ];

Property password As %String(MAXLEN = "", XMLNAME = "password") [ Required ];

To sum up, the solution was to writte the same NAMESPACE at both ESBSSCC's and ESBCHUIMI's SOAP Header classes:

Parameter NAMESPACE = "http://SIPRESatelites/SIPRESatelites.wsdl";

Again, thanks @Shanshan Yu for your help, time, and examples.
 

Thanks @Shanshan Yu  for your help.

Yes it does, the ESBCHUIMI's web service client class has it code to handle the SOAP header as follows:

Method actualizarEstadoSolicitudOrto(idsolicitud As %String(XMLNAME="id_solicitud",REQUIRED=1), codcentroentidad As %String(XMLNAME="cod_centro_entidad",REQUIRED=1), numexpedientetarjeta As %String(XMLNAME="num_expediente_tarjeta",REQUIRED=1), estado As %String(XMLPATTERN="\d{1,100}",REQUIRED=1), observaciones As %String(MAXLEN=4000), Output descripcion As %String(REQUIRED=1), usuario As %String(REQUIRED=1), password As %String(REQUIRED=1)) As %Numeric(XMLNAME="codigo") [ Final, ProcedureBlock = 1, SoapBindingStyle = document, SoapBodyUse = literal, WebMethod ]
{
 //credenciales en el header
   set Credenciales = ##class(EsquemasDatos.ProgramasAsistenciales.DragoAE.tns.CredencialesType).%New()
   set Credenciales.usuario = usuario
   set Credenciales.password = password  

   do ..HeadersOut.SetAt(Credenciales, "Credenciales")
   
 Quit ..WebMethod("actualizarEstadoSolicitudOrto","ActualizarEstadoSolicitudOrtoRequestElement").Invoke($this,"http://SIPRESatelites/SIPRESatelites.wsdl/actualizarEstadoSolicitudOrto",.idsolicitud,.codcentroentidad,.numexpedientetarjeta,.estado,.observaciones,.descripcion)
}

The challenge is that there is an Exception between what ESBSSCC's web service client outputs and what ESBCHUIMI's SERVICE class handles as inputs, because it fails at recognizing SOAP Header's Credenciales, and the execution flow breaks at line 7 at ESBCHUIMI's Service Class code here:

set request.usuario = ..HeadersIn.GetNext().usuario
 

We have also tried to call it as follows and it stills failling:

set request.usuario = ..HeadersIn.GetNext("Credenciales").usuario

Being the Error code as follows:

Id.: 320758306
Tipo: Error
Texto: ERROR #6248: La respuesta de SOAP es un error de SOAP: faultcode=Server
faultstring=Error del servidor de aplicaciones.
faultactor=
detail=
<error xmlns="http://SCS.Servicios/SIPRESatelites">
<text>ERROR #5002: Error de cache: &lt;INVALID OREF&gt;zactualizarEstadoSolicitudOrto+7^Servicios.ProgramasAsistenciales.DragoAE.Ortoprotesis.SIPREtoDragoAEv01r00.1</text>
</error>

Could you help us please?

Thanks for your time.

Thanks for your help.

Thanks for your replies.

Thanks @Eduard Lebedyuk for your reply and example.

We have checked and your example does convert the "<" to "%lt;" .

However when at our integration we have followed your suggestions:

Property PACPROBLEMAS As %String(CONTENT = "ESCAPE", MAXLEN = "", XMLNAME = "PAC_PROBLEMAS");
 

So then the LOG SOAP shows:

[...]<PAC_PROBLEMAS>46807#278.01#OBESIDAD INFANTIL GRAVE     ( Z-SCORE IMC &gt;2,70 )#19/09/2019##N#S</PAC_PROBLEMAS>[...]

However when the Visual Trace shows this content, it spawns a CDATA which we do not understand how to remove:

<s01:PAC_PROBLEMAS><![CDATA[46807#278.01#OBESIDAD INFANTIL GRAVE     ( Z-SCORE IMC >2,70 )#19/09/2019##N#S]]>
</s01:PAC_PROBLEMAS>

Is there any configuration, parameter, property or addon which we could employ inside the Web Service Client, the SOAP Operation, the Ens.Response Message, or the inner Data Structures where we could express that we need to erase <![CDATA[]]>?

How could we achieve this?

Thanks for your time, help and support. We are grateful for your reply.

Thanks @Jeffrey Drumm thank you so much, Jeffrey Drumm, for your prompt and precise solution! Your explanation is thorough and greatly appreciated. Your time, assistance, and support mean a lot. The clarification about using the '*' shorthand and the correction regarding Document.DocTypeName versus Document.Name were particularly helpful. Thanks again for your invaluable contribution!

It worked as expected!
 

Thanks @Ashok Kumar for your support and help.

How do we verify it? How do we get all the values whether the hl7 message is properly imported to the object after executing XMLImportSDAString() for all the properties?

We have written: xml.Read() to see which holds:

ClassMethod HL7ToCustomEnsReq(request As EnsLib.HL7.Message) As Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest
{
    #dim xml As %Stream.GlobalCharacter
    
    set tSC = ##class(HS.Gateway.HL7.HL7ToSDA3).GetSDA(request,.xml)
    $$$ThrowOnError(tSC)
    
    $$$LOGALERT("xml.Read(): "_xml.Read())
    do xml.Rewind()
    
    set reqObj = ##class(Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest).%New()
    do reqObj.XMLImportSDAString(xml.Read())
    set tSC = reqObj.%Save()
    $$$ThrowOnError(tSC)
    
    $$$LOGINFO("reqObj.MSH.MSH1.content: "_reqObj.MSH.MSH1.content)
    quit reqObj
}

We do observe:

xml.Read():

<?xml version="1.0" encoding="UTF-16"?>
<Container xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:isc="http://extension-functions.intersystems.com">
    <EventDescription>ORM_O01</EventDescription>
    <SendingFacility>12010410</SendingFacility>
    <Patient>
        <PatientNumbers>
            <PatientNumber>
                <Number>ZZZ</Number>
                <NumberType>MRN</NumberType>
                <Organization>
                    <Code>ZZZ</Code>
                </Organization>
            </PatientNumber>
            <PatientNumber>
                <Number>BCE</Number>
                <NumberType>BCE</NumberType>
                <Organization>
                    <Code>MPI</Code>
                </Organization>
                <ISOAssigningAuthority>MPI</ISOAssigningAuthority>
            </PatientNumber>
            <PatientNumber>
                <Number>ECX</Number>
                <NumberType>ECX</NumberType>
                <Organization>
                    <Code>TISR</Code>
                </Organization>
                <ISOAssigningAuthority>TISR</ISOAssigningAuthority>
            </PatientNumber>
            <PatientNumber>
                <Organization>
                    <Code>DNI</Code>
                </Organization>
                <ISOAssigningAuthority>DNI</ISOAssigningAuthority>
            </PatientNumber>
            <PatientNumber>
                <Number>ABC</Number>
                <Organization>
                    <Code>ABC</Code>
                </Organization>
            </PatientNumber>
        </PatientNumbers>
        <Name>
            <GivenName>AAA</GivenName>
            <FamilyName>BBB</FamilyName>
            <MiddleName>CCC</MiddleName>
        </Name>
        <BirthTime>1951-11-07T00:00:00Z</BirthTime>
        <Gender>
            <Code>F</Code>
        </Gender>
        <Addresses>
            <Address>
                <Street>C/; 87</Street>
                <State>
                    <Code>28</Code>
                </State>
                <Zip>
                    <Code>35500</Code>
                </Zip>
            </Address>
        </Addresses>
        <ContactInfo>
            <HomePhoneNumber>624508234</HomePhoneNumber>
        </ContactInfo>
        <IsDead>0</IsDead>
        <EnteredAt>
            <Code>12010410</Code>
        </EnteredAt>
    </Patient>
    <OtherOrders>
        <OtherOrder>
            <FillerId>00000000</FillerId>
            <Priority>
                <Code>1</Code>
            </Priority>
            <EnteredBy>
                <Code>32873705N</Code>
            </EnteredBy>
            <EnteringOrganization>
                <Code>CON</Code>
                <Organization>
                    <Code>12010410</Code>
                </Organization>
            </EnteringOrganization>
            <OrderItem>
                <Code>1</Code>
                <Description>Hemograma</Description>
            </OrderItem>
            <Comments>
                <![CDATA[Datos clínicos de interés%%%]]>
            </Comments>
        </OtherOrder>
    </OtherOrders>
    <Action>AddOrUpdate</Action>
</Container>

How do we convert this SDA to the Ens.Request needed, which holds an structure like this:

Class Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest Extends (Ens.Request, HS.SDA3.QuickXML) [ ProcedureBlock ]
{

Parameter RESPONSECLASSNAME = "Mensajes.Response.Peticiones.Derivaciones.EnvioPeticiones.operacionResponse";

Property MSH As hl7.MSH.CONTENT;

Property NTE As list Of hl7.NTE.CONTENT;

Property ORMO01PATIENT As hl7.ORMO01.PATIENT.CONTENT;

Property ORMO01ORDER As list Of hl7.ORMO01.ORDER.CONTENT;

Property SFT As list Of hl7.SFT.CONTENT;

Property MSA As hl7.MSA.CONTENT;

Property ERR As list Of hl7.ERR.CONTENT;

How do we continue?

Thanks for your time, help, support and effort, and patience.

Thanks @Ashok Kumar , for your kind help.

We have developed it as follows:

ClassMethod HL7ToCustomEnsReq(request As EnsLib.HL7.Message) As Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest
{
    #dim xml As %Stream.GlobalCharacter
    set tSC = ##class(HS.Gateway.HL7.HL7ToSDA3).GetSDA(request,.xml)
    $$$ThrowOnError(tSC)
    
    set reqObj = ##class(Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest).%New()
    do reqObj.XMLImportSDAString(xml.Read())
    set tSC = reqObj.%Save()
    $$$ThrowOnError(tSC)
    
    $$$LOGINFO("reqObj.MSH.MSH1.content: "_reqObj.MSH.MSH1.content)
    quit reqObj
}

Where the Request is as follows:

Class Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest Extends (Ens.Request, HS.SDA3.QuickXML) [ ProcedureBlock ]
{

Parameter RESPONSECLASSNAME = "Mensajes.Response.Peticiones.Derivaciones.EnvioPeticiones.operacionResponse";
Property MSH As hl7.MSH.CONTENT;
Property NTE As list Of hl7.NTE.CONTENT;
Property ORMO01PATIENT As hl7.ORMO01.PATIENT.CONTENT;
Property ORMO01ORDER As list Of hl7.ORMO01.ORDER.CONTENT;
Property SFT As list Of hl7.SFT.CONTENT;
Property MSA As hl7.MSA.CONTENT;
Property ERR As list Of hl7.ERR.CONTENT;

And the Transformation invokes the HL7ToCustomEnsReq() functions like this:

Class Transformaciones.HL7.Peticiones.Derivacion.Mensaje.ORM01 Extends Ens.DataTransformDTL [ DependsOn = (EnsLib.HL7.Message, Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest) ]
{

Parameter IGNOREMISSINGSOURCE = 1;
Parameter REPORTERRORS = 1;
Parameter TREATEMPTYREPEATINGFIELDASNULL = 0;
XData DTL [ XMLNamespace = "http://www.intersystems.com/dtl" ]
{
<transform sourceClass='EnsLib.HL7.Message' targetClass='Mensajes.Request.Peticiones.Derivaciones.EnvioPeticiones.operacionRequest' sourceDocType='2.5:ORM_O01' targetDocType='2.5:ORM_O01' create='new' language='objectscript' >
<assign value='##class(Util.FuncionesComunes).HL7ToCustomEnsReq(source)' property='target' action='set' />
</transform>
}

}

However we do see the $$$LOGINFO("reqObj.MSH.MSH1.content: "_reqObj.MSH.MSH1.content) totally empty:

  reqObj.MSH.MSH1.content:

Being a warning issued as:

Could not generate EncounterNumber, skipping Encounter

What have we done wrong?

How could we understand, improve and fix it?

Is this the recommended way to convert an official HL7 Message, to a Ens.Request which is similar to a HL7 message but where each segment and field is an Ensemble class?

Thanks for your time, help and effort.

We have also read carefully: https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP.D...

Again thanks @Ashok Kumar for your help.
 

Thanks @Ashok Kumar for your thoughts and time, trying to help us.
 

We have tested it, as follows:

	; 08/11/2023 We try to encode the signature with base64Url
	set base64urlSignature = ##class(%OAuth2.Utils).Base64UrlEncode(signature)
	$$$LOGASSERT("base64urlSignature: "_base64urlSignature)

It shows the following output:

base64urlSignature: cvj48UMDm3jtp9amY7rO1eyXmutC9wjMZzREmQOGIL0

So, you are right, it looks like it removes the "=" character at the end, because when we use:

	set bas64signature = $system.Encryption.Base64Encode(signature)
	$$$LOGINFO("bas64signature: "_bas64signature)

It shows us, the next outpout which contains "=" at the end:

bas64signature: cvj48UMDm3jtp9amY7rO1eyXmutC9wjMZzREmQOGIL0=

However it does not fix why the JWT's third part is different thant the one provided the simulator and tested with JWT.io

We think the difference is due to this line, the one which retrieves the signature:

	set signature = $SYSTEM.Encryption.HMACSHA(256, unsignedToken, key)
	$$$LOGINFO("signature: "_signature)

How could we understand, deeply understand, and solve this need?

Thanks for your help, time, and effort.

Thanks @Ashok Kumar  for your help and time.

The updated variant:

	set header = "{""alg"":""HS256""}"
	$$$LOGINFO("header: "_header)
	set payload = "{""username"":"""_user_""",""requestID"":"""_pRequest.idPeticion_"""}"
	$$$LOGINFO("payload: "_payload)
	set key = ##class(Util.TablasMaestras).getValorMaestra("PDF_LABORATORIO","secretKey_JWT")
	$$$LOGINFO("key: "_key)
	set base64header = $system.Encryption.Base64Encode(header)
	$$$LOGALERT("base64header: "_base64header)
	set base64payload = $system.Encryption.Base64Encode(payload)
	$$$LOGALERT("base64payload: "_base64payload)	
	set base64decode = $system.Encryption.Base64Decode(base64payload)
	$$$LOGALERT("base64decode: "_base64decode)
	set base64payloadNUEVO = $system.Encryption.Base64Encode(base64decode)
	$$$LOGALERT("base64payloadNUEVO: "_base64payloadNUEVO)
	
	
	set base64decodeFUNCIONA = $system.Encryption.Base64Decode("eyJ1c2VybmFtZSI6Imhvc3QiLCJyZXF1ZXN0SUQiOiI5NDAzNjgyIn0")
	$$$LOGALERT("base64decodeFUNCIONA: "_base64decodeFUNCIONA)
	set base64FUNCIONA = $system.Encryption.Base64Encode(base64decodeFUNCIONA)
	$$$LOGALERT("base64FUNCIONA: "_base64FUNCIONA)

	
	set base64payloadQuitarIgualFinal = $PIECE(base64payload,"=",1)
	$$$LOGALERT("base64payloadQuitarIgualFinal: "_base64payloadQuitarIgualFinal)	
	
	set unsignedToken =  base64header_"."_base64payloadQuitarIgualFinal
	$$$LOGINFO("unsignedToken: "_unsignedToken)
	
	set signature = $SYSTEM.Encryption.HMACSHA(256, unsignedToken, key)
	$$$LOGINFO("signature: "_signature)
	set bas64signature = $system.Encryption.Base64Encode(signature)
	$$$LOGINFO("bas64signature: "_bas64signature)
	
	set token = unsignedToken_"."_bas64signature
	$$$LOGWARNING("token: "_token)

Besides, comparing the one provided by the simulator which works, and the one which generates Ensemble; it is two thirds equals:

Header is exactly the same:

Payload is equal:

However the third one, the signature is not right.

We do not know why the lines which get the signature as a "HMAC-SHA256" are not ginving the proper and/or expected string:

	set signature = $SYSTEM.Encryption.HMACSHA(256, unsignedToken, key)
	$$$LOGINFO("signature: "_signature)
	set bas64signature = $system.Encryption.Base64Encode(signature)
	$$$LOGINFO("bas64signature: "_bas64signature)
	
	set token = unsignedToken_"."_bas64signature
	$$$LOGWARNING("token: "_token)

We would need as the simulator has provided: "0LagsAfugccAlAiVyEQ2VbX8dODn0bCOixQROTAYG1I"

However Ensemble outputs as a signature this one: "cvj48UMDm3jtp9amY7rO1eyXmutC9wjMZzREmQOGIL0="

--

How could we understand and solve this?

We have also read carefully:

https://community.intersystems.com/post/how-use-base64-encrypt-string-ex...

https://community.intersystems.com/post/hmac-authentication-problem

https://docs.intersystems.com/irisforhealthlatest/csp/documatic/%25CSP.D...

Could you help us, please?

Yes, you are right:

Source:



MSH|^~\&|ROCHE|350228|CARESUITE|1419|20231024083456||ORU^R01^ORU_R01|6677130896271347|P|2.5|||AL|AL
PID|1||ABC^^^HIS^PI^^^^ABC&&99CENTRO_SCS||ABC^ABC||ABC|M||||
PV1|1|U|UVI08|R||||||MIV^Medicina Intensiva^99SVC||||||||||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|300^Indice Lipemico^CAT_350228|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|300^Indice Lipemico^CAT_350228||8||0-14||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|2|NM|301^Indice Hemolitico^CAT_350228||1||0-40||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|3|NM|302^Indice Icterico^CAT_350228||1||0-30||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|4|NM|1001^Glucosa. (Sangre)^CAT_350228||112|mg / dl|70-110|H|||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|5|NM|1005^Urea. (Sangre)^CAT_350228||39.4|mg / dl|10-50||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|6|NM|1007^Creatinina. (Sangre)^CAT_350228||0.902|mg / dl|.67-1.17||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|7|NM|1195^Filtrado glomerular estimado (CKD-EPI)^CAT_350228||84.20710618|mL/min|60-999||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|8|NM|1006^?ido ?ico (Urato). (Sangre)^CAT_350228||3.33|mg / dl|3-7||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|9|NM|1019^Prote?as totales. (Sangre)^CAT_350228||6.69|g / dl|6.4-8.3||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|10|NM|1009^Sodio. (Sangre)^CAT_350228||141.6|meq/l|135-145||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|11|NM|1010^Potasio. (Sangre)^CAT_350228||3.87|meq/l|3.5-5.2||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|12|NM|1011^Cloro. (Sangre)^CAT_350228||104.6|meq/l|94-110||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|13|NM|1035^Fosfato. (Sangre)^CAT_350228||3.3|mg / dl|2.7-4.5||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|14|NM|1021^Creatinquinasa (CK). (Sangre)^CAT_350228||186|U/L|20-200||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|15|NM|1027^Troponina T sensible. (Sangre)^CAT_350228||657|ng/L|3-14|H|||F|||20231024065700^^20231024083343||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|16|NM|3191^Procalcitonina. (Sangre)^CAT_350228||2.46|ng/mL|.1|H|||F|||20231024065700^^20231024083343||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|17|NM|4021^Prote?a C Reactiva. (Sangre)^CAT_350228||5.07|mg / dl|0-.5|H|||F|||20231024065700^^20231024083343||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|18|ST|9100^HEMOGRAMA^CAT_350228||*||||||F|||20231024065700^^20231024065749||^^Validado por el sistema^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|19|NM|9111^Hematies^CAT_350228||4.16|10^6/?L|4.4-5.9|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|20|NM|9114^Hemoglobina^CAT_350228||11.4|g / dl|11-17.5||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|21|NM|8017^Hematocrito^CAT_350228||35.4|%|40-54|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|22|NM|8027^VCM^CAT_350228||85|fl|80-99||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|23|NM|8023^HCM^CAT_350228||27.5|pg|26-32||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|24|NM|8026^CHCM^CAT_350228||32.3|g / dl|32-36||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|25|NM|8029^RDW^CAT_350228||17|%|11.5-14.5|H|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|26|NM|8035^Plaquetas^CAT_350228||274|10^3/uL|120-400||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|27|NM|8038^Volumen plaquetar medio^CAT_350228||8.8|fl|7.2-11.1||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|28|NM|8044^Leucocitos^CAT_350228||9|10^3/uL|4-12||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|29|NM|8053^Neutrofilos %^CAT_350228||86.7|%|36-66|H|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|30|NM|8047^Linfocitos %^CAT_350228||6.4|%|24-44|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|31|NM|8028^Monocitos %^CAT_350228||4.8|%|5-11|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|32|NM|8057^Eosinofilos %^CAT_350228||1.9|%|0-7||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|33|NM|8031^Basofilos %^CAT_350228||0.2|%|0-1.5||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|34|NM|8325^FA Neutr?ilos^CAT_350228||7.8|10^3/?L|1.9-8||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|35|NM|9410^FA Linfocitos^CAT_350228||0.6|10^3/?L|.9-5.2|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|36|NM|8319^FA Monocitos^CAT_350228||0.4|10^3/?L|.16-1||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|37|NM|8245^FA Eosin?ilos^CAT_350228||0.2|10^3/?L|0-.8||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|38|NM|8219^FA Bas?ilos^CAT_350228||0|10^3/?L|0-.2||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|39|NM|8073^TP^CAT_350228||12|seg|9-14||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|40|NM|8076^I. QUICK^CAT_350228||92|%|80-130||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|41|NM|8082^Fibrinogeno^CAT_350228||709|mg/dl|200-400|H|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|42|NM|8085^Patron normal APTT^CAT_350228||31|seg|||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|43|NM|8088^APTT^CAT_350228||35.4|seg|25.6-38.4||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|44|ST|9101^Coagulacion^CAT_350228||*||||||F|||20231024065700^^20231024065749||^^Validado por el sistema^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|45|NM|9102^INR^CAT_350228||1.05||||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|46|NM|9170^Patron Normal TP^CAT_350228||11.4|seg|||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|47|NM|9191^APTT Ratio^CAT_350228||1.06||||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
OBX|48|ST|9950^Comentarios AP^CAT_350228||COMENTARIO||||||F|||20231024065700^^20231024065749||^^Validado por el sistema^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
NTE|1||Sospecha Diagn?tica (m?. 50 caracteres):.@@@Otras Pruebas:@@@Datos cl?icos de inter?:@@@Indicaciones-Protocolo AP:|O3K

The needed ORC + OBR + TQ1 + OBX output would be:



MSH|^~\&|ROCHE|350228|CARESUITE|1419|20231024083456||ORU^R01^ORU_R01|6677130896271347|P|2.5|||AL|AL
PID|1||ABC^^^HIS^PI^^^^ABC&&99CENTRO_SCS||ABC^ABC||ABC|M||||
PV1|1|U|UVI08|R||||||MIV^Medicina Intensiva^99SVC||||||||||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|16288^�ndice lipemia. (Sangre: suero)^CUP||8||0-14||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|16289^�ndice hem�lisis. (Sangre: suero)^CUP||1||0-40||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|16290^�ndice ictericia. (Sangre: suero)^CUP||1||0-30||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|00809^Glucosa. (Sangre)^CUP||112|mg / dl|70-110|H|||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01467^Urea. (Sangre)^CUP||39.4|mg / dl|10-50||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|00560^Creatinina. (Sangre)^CUP||0.902|mg / dl|.67-1.17||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|00723^Filtrado glomerular (GFR) estimado (MDRD 4)^CUP||84.20710618|mL/min|60-999||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|00061^�cido �rico (Urato). (Sangre)^CUP||3.33|mg / dl|3-7||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01269^Prote�nas totales. (Sangre)^CUP||6.69|g / dl|6.4-8.3||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01353^Sodio. (Sangre)^CUP||141.6|meq/l|135-145||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01204^Potasio. (Sangre)^CUP||3.87|meq/l|3.5-5.2||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|00420^Cloro. (Sangre)^CUP||104.6|meq/l|94-110||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|00761^Fosfato. (Sangre)^CUP||3.3|mg / dl|2.7-4.5||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|00562^Creatinquinasa (CK). (Sangre)^CUP||186|U/L|20-200||||F|||20231024065700^^20231024082454||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01458^Troponina T. (Sangre)^CUP||657|ng/L|3-14|H|||F|||20231024065700^^20231024083343||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01219^Procalcitonina. (Sangre)^CUP||2.46|ng/mL|.1|H|||F|||20231024065700^^20231024083343||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01263^Prote�na C Reactiva. (Sangre)^CUP||5.07|mg / dl|0-.5|H|||F|||20231024065700^^20231024083343||TFG^^Taiomara Fernandez^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|ST|01984^Hemograma. (Sangre)^CUP||*||||||F|||20231024065700^^20231024065749||^^Validado por el sistema^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01987^Hemat�es (RBC). (Sangre)^CUP||4.16|10^6/?L|4.4-5.9|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01989^Hemoglobina (HGB). (Sangre)^CUP||11.4|g / dl|11-17.5||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01988^Hematocrito (HCT). (Sangre)^CUP||35.4|%|40-54|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01994^Volumen corpuscular medio (VCM). (Sangre)^CUP||85|fl|80-99||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01986^Hemoglobina corpuscular media (HCM). (Sangre)^CUP||27.5|pg|26-32||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01985^Concentraci�n hemoglobina corpuscular media (CHCM) . (Sangre)    ^CUP||32.3|g / dl|32-36||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01558^Amplitud distribuci�n del volumen de los eritrocitos (ADE o RDW). (Sangre)^CUP||17|%|11.5-14.5|H|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01992^Plaquetas (PLT). (Sangre)^CUP||274|10^3/uL|120-400||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|04515^Volumen plaquetar medio (VPM). (Sangre)^CUP||8.8|fl|7.2-11.1||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01990^Leucocitos (WBC). (Sangre)^CUP||9|10^3/uL|4-12||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02140^Neutr�filos absolutos (contaje autom�tico). (Sangre)^CUP||86.7|%|36-66|H|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02032^Linfocitos absolutos (contaje manual). (Sangre)^CUP||6.4|%|24-44|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02078^Monocitos absolutos (contaje autom�tico). (Sangre)^CUP||4.8|%|5-11|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01865^Eosin�filos absolutos (contaje autom�tico). (Sangre)^CUP||1.9|%|0-7||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01660^Bas�filos absolutos (contaje autom�tico). (Sangre)^CUP||0.2|%|0-1.5||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02140^Neutr�filos absolutos (contaje autom�tico). (Sangre)^CUP||7.8|10^3/?L|1.9-8||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02048^Linfocitos absolutos (contaje autom�tico). (Sangre)^CUP||0.6|10^3/?L|.9-5.2|L|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02078^Monocitos absolutos (contaje autom�tico). (Sangre)^CUP||0.4|10^3/?L|.16-1||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01865^Eosin�filos absolutos (contaje autom�tico). (Sangre)^CUP||0.2|10^3/?L|0-.8||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01660^Bas�filos absolutos (contaje autom�tico). (Sangre)^CUP||0|10^3/?L|0-.2||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02203^Tiempo de protrombina (TP) segundos. (Sangre: plasma)^CUP||12|seg|9-14||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02199^Actividad de Protrombina (%)  (�ndice de Quick). (Sangre: plasma)^CUP||92|%|80-130||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|01951^Fibrin�geno Clauss. (Sangre: plasma)^CUP||709|mg/dl|200-400|H|||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|10683^CONTROL: Tiempo de tromboplastina parcial activada (TTPA)^CUP||31|seg|||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02433^Tiempo de tromboplastina parcial activada (TTPA). (Sangre)^CUP||35.4|seg|25.6-38.4||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|ST|01874^Estudio coagulaci�n. (Sangre)^CUP||*||||||F|||20231024065700^^20231024065749||^^Validado por el sistema^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|04510^INR (punci�n venosa). (Sangre: plasma)^CUP||1.05||||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|10221^CONTROL:  Actividad tiempo protrombina (TP)^CUP||11.4|seg|||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|9^Hematolog�a^CUP^HEL^Hematolog�a Laboratorio^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|NM|02432^Tiempo de Tromboplastina Parcial Activada (TTPA) ratio. (Sangre)^CUP||1.06||||||F|||20231024065700^^20231024083400||~SYSValDaemon~^^System^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
ORC|SC|1024937532^SISTEMAEXTERNO|1024937532^LAB350228O3K||CM||||20231024083456|||maroaje^^^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS|||20231024065700||MIV^Medicina Intensiva^99SVC||||HOSPITALIZADOS^^^^^^^FI^^^^1||
OBR|1|1024937532^SISTEMAEXTERNO|1024937532^LAB035228O3K|8^Bioqu�mica^CUP^ACL^An�lisis Cl�nicos^CUP|||20231024065700|||||||20231024065700||MIV^Medicina Intensiva|||^^^|^^^^|^^^^^|20231024083405||.|CM|||||||Taiomara Fernandez^^20231024082454
TQ1|1||||||||R^Normal^HL70485
OBX|1|ST|16329^COMENTARIO: Atenci�n Primaria ^CUP||COMENTARIO||||||F|||20231024065700^^20231024065749||^^Validado por el sistema^^^^^^OMEGA^^^^PN^^^^^^^^^350228&&99CENTROS_SCS||
NTE|1||Sospecha Diagn?tica (m?. 50 caracteres):.@@@Otras Pruebas:@@@Datos cl?icos de inter?:@@@Indicaciones-Protocolo AP:|O3K

How could we achieve this, given the two variants of the transformation being exposed as our fist post? How could we express the needed behaviour throught Data Transformation Language?

Thanks for your time, reading, asnwering, and thinking about this.