/// <p>
/// <b>2020-04-23 - Cristiano José da Silva</b><br/>
/// Conjunto de fuincões a serem utilizadas pelas regras , tranformações e process
/// <p>
Class HC.distribuicao.utils.FunctionSet Extends Ens.Rule.FunctionSet
{
ClassMethod HL7AtribuirValor(valor As %String, caminhoPropriedade As %String, mensagem As EnsLib.HL7.Message) As %Boolean [ Final ]
{
If ('mensagem.IsMutable)
{
Throw ##Class(%Exception.General).%New("ObjetoImutavel", 5001, $$$CurrentClass _ "." _ $$$CurrentMethod, "Impossível atribuir valor a mensagem imutável.")
}
Do mensagem.SetValueAt(valor, caminhoPropriedade, "set", "")
//
Return 1
}
}
Use the property "Document" instead HL7 or HL7.Source
Like this:
The Function HL7AtribuirValor assign the value "A08" int the field "MSH:MEssageType.triggerevent", in the Document that is the HL7 Message and returns a boolean value.
For step 4.3 you can call the method delete from EnsLib.FTP.InboundAdapter in the method OnProcesssInput after you finalize the treatment of the "errors.txt".
go to post
Hi Raghu,
No, You doens't loose your persistant data. If you need to purge your data too, you need to create a trigger or implement callback method %OnDelete.
Using Triggers - Using InterSystems SQL - InterSystems IRIS Data Platform 2021.1
Defining Callback Methods - Defining and Using Classes - InterSystems IRIS Data Platform 2021.1
Regards.
go to post
Hi Lucas,
That I have been know, ISC don't have native tool for data masking.
Look at this open source project, maybe help you.
GitHub - TheSoftwareHouse/fogger
I never been used this tool.
Regards.
Cristiano José da Silva.
go to post
Hi Jens,
You need to setup the port in the adapter settings.
In the method SendFormDataArray all adapter settings is passed to http request object.
go to post
Maybe using the property parameter :
Controlling Transformations of Values - Projecting Objects to XML - InterSystems IRIS Data Platform 2020.3
go to post
Updated link to the badge https://www.youracclaim.com/badges/30f9d00f-82a3-45ab-a879-b83a7053f00d/...
go to post
Speaking about "Relational World" is better to use Classes/Tables of package
INFORMATION.SCHEMA
In this post has a little example: https://community.intersystems.com/post/describe-table-cache-db?page=1#comment-128856
Regards.
go to post
HI Bukhtiar,
Iris has built in validation against a schema see: HL7 Schemas and Available Tools
But, is simple to iterate over all segments of a HL7 message or any Virtual Document like this example:
For more details se then documentation:
EnsLib.HL7.Message
EnsLib.HL7.Segment
go to post
Yes.
go to post
Hi Bukhtiar,
Use the property "Document" instead HL7 or HL7.Source
Like this:
The Function HL7AtribuirValor assign the value "A08" int the field "MSH:MEssageType.triggerevent", in the Document that is the HL7 Message and returns a boolean value.
go to post
Hi Mikael,
The steps 4.1 and 4.2 Is done by the EnsLib.FTP.InboundAdapter. Check the documentation Overall Behavior.
For step 4.3 you can call the method delete from EnsLib.FTP.InboundAdapter in the method OnProcesssInput after you finalize the treatment of the "errors.txt".