Replies: 4 comments
-
Hi @adellieux OBX segment slot 5 is Observation Value, like you already have, which is classified as "Varies" data type. So it can be a collection of any strings, including (of course) the string output(s) from any other HL7 type. I think what they're doing in the guide you have is using something like a Notice the Message outboundMessage = new()
{
Segments = new ISegment[]
{
new ObxSegment()
{
SetIdObx = (uint?)GetNextObxSequenceNumber(),
ValueType = _helper.EnumToCode(CodeValueType.EncapsulatedData),
ObservationValue =
[
new CodedWithExceptions()
{
Text = _helper.EnumToCode(CodeTypeOfReferencedData.MachineReadableTextDocument),
NameOfCodingSystem = _helper.EnumToCode(CodeSubtypeOfReferencedData.XmlExtensibleMarkupLanguage),
AlternateIdentifier = _helper.EnumToCode(CodeEncoding.Base64),
AlternateText = "RG9jdW1lbnQgbWVkY2lhbCBhdSBmb3JtYXQgQ0RBIG5pdmVhdSAx"
}.ToDelimitedString()
]
},
}
} Outputs: |
Beta Was this translation helpful? Give feedback.
-
Hi @davebronson , thank you for your quick answer. That makes sense : even if the ObservationValue has a ValueType = EncapsulatedData, its content seems to be CWE. About CE, i can see that it is deprecated ("withdrawn" as mentioned in 2.A.6 WITHDRAWN (CE - coded entry), here: https://www.hl7.eu/refactored/ch02a.html) |
Beta Was this translation helpful? Give feedback.
-
You're welcome! CWE and CNE are the replacements for CE, so one of those is what I'd use, yes. The 6 slots of CE match up nicely with the first 6 slots of CWE and CNE too, so it's simple to make that switch. And the output should be the same, all else being equal. |
Beta Was this translation helpful? Give feedback.
-
Hi |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
i'm new to HL7, and am starting using Clear-HL7 classes, using version 2.1.1
I have a question about OBX segment and its property ObservationValue.
I have to conform to an implementation guide and the requirement is to add five strings to ObservationValue array.
The problem i am facing is about the separator used by ObxSegment with ObservationValue.
Here is some sample code i use :
and the resulting HL7 string :
From the guide i have to conform to, here is a sample of what is awaited :
As you can the see, the separator is not the same.
In my case, FieldRepeatSeparator is used, and in the guide, ComponentSeparator is used.
What is the proper way of achieving this ?
As a workaround, i will use Join and ComponentSeparator and use a single string.
Any advice is welcome ;-)
Beta Was this translation helpful? Give feedback.
All reactions