Enabling HL7v2 Interfaces
To enable the HL7v2 messaging interfaces, the SanteDB iCDR host instance's configuration file needs to be updated to include the HL7ConfigurationSection
as illustrated:
Security Configuration
Anonymous User
If SanteDB is used in a context where SLLP is not used to authenticate devices, and senders do not support MSH-8 then you can set the authentication mode to none and set the @anonUser
attribute. This attribute is the anonymous user account that you wish unauthenticated contexts to run under. By default, ANONYMOUS
is used.
Metadata / Control Configuration
The elements which control metadata used by the HL7 message handler are:
Element
Use
@strictMetadata
When true, segment processing must only assign relationships (to organizations, facilities, etc.) when an explicit identifier matches that registered in the CDR. If false, then the segment handler will attempt name matching of places to perform linking.
@idReplacement
When set to any-in-domain
, any attempt to update a patient identifier will remove the existing identifier for that patient in the domain and replace it with the provided value. This has the effect of only allowing one identifier per identity domain from a single sender.
birthplaceClasses
In HL7v2, the birthplace of patients and persons are represented as simple place names. This list provides a series of class codes which Place
instances can have to resolve to a birthplace. For example, one can enable SerivceDeliveryLocation
as a class code for birthplace and SanteDB will match birthplaces with hospitals and clinics.
facility
This is the value of the ServiceDeliveryLocation
instance in which the instance of SanteDB is running. This information is used to populate the MSH-4
field if the iCDR is sending HL7 messages, or the MSH-6
field if matching inbound messages.
localAuthority
Contains an AssigningAuthority
which is used to emit local keys and designate inbound identifiers as a local identifier. Given the example above, the internal resource UUID for a patient would be emitted in HL7 as: 9ce06884-39ff-42b6-87b4-bd6b9df24702^^^YOUR_LOCAL_V2_AUTHORITY&1.3.6.1.4.1.52820.5.1.1.1.999&ISO
ssnAuthority
Like the localAuthority
, this contains the domain which the PID-19
field should be mapped to (since SanteDB's HL7 handler maps this into a PID-3
identity domain)
Last updated