HL7 Message ORC Segment GetQuantityTiming Part Cant Able to Add RepeatPattern Subelements Using NHapi.Model.V25 #620
-
Sir Csharp Code using NHapi.Model.V25.Datatype;
using NHapi.Model.V25.Message;
using NHapi.Model.V25.Segment;
using NHapi.Base.Model;
var timing = orc.GetQuantityTiming(0);
timing.Quantity.Identifier.Value = "BID";
timing.Quantity.Text.Value = "twice a day at institution-specified times";
timing.Quantity.NameOfCodingSystem.Value = "MALAFFI";
RDS-O13 ORC Segment Sample Message :
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 1 reply
-
The error you are seeing is accurate, according to the 2.5 specification the quantity (data type However, looking at your example encoded ORC segment perhaps you are looking for something like this: var timing = orc.GetQuantityTiming(0);
timing.Interval.RepeatPattern.Value = "BID";
timing.Duration.Value = "twice a day at institution-specified times";
timing.StartDateTime.Time.Value = "20191117120000";
timing.EndDateTime.Time.Value = "20191119180000";
timing.Priority.Value = "R";
timing.OccurrenceDuration.NameOfCodingSystem.Value = "MALAFFI";
timing.OccurrenceDuration.Text.Value = "4 Days"; The output of encoded |
Beta Was this translation helpful? Give feedback.
-
Unless you meant to assign the Quantity Units (ORC.7.1.2) which does seem to have those fields? using NHapi.Model.V25.Datatype;
using NHapi.Model.V25.Message;
using NHapi.Model.V25.Segment;
using NHapi.Base.Model;
var timing = orc.GetQuantityTiming(0);
timing.Quantity.Units.Identifier.Value = "BID";
timing.Quantity.Units.Text.Value = "twice a day at institution-specified times";
timing.Quantity.Units.NameOfCodingSystem.Value = "MALAFFI";
timing.StartDateTime.Time.Value = "20191117120000";
timing.EndDateTime.Time.Value = "20191119180000";
timing.Priority.Value = "R"; but that produces this encoded TQ: |
Beta Was this translation helpful? Give feedback.
-
in this Format Malaffi need to Get. Format is given in their document is like this. After Repeat Pattern Description We need to Put MALAFFI in it. |
Beta Was this translation helpful? Give feedback.
-
If you need it exactly as per the sample, you would need to assign values that do not match the fields intended use case: var timing = orc.GetQuantityTiming(0);
timing.Interval.RepeatPattern.Value = "QID";
timing.Duration.Value = "four times a day at institution-specified times"; // is this a duration?
timing.StartDateTime.Time.Value = "MALAFFI"; // doesn't look like a Start Date Time?
timing.EndDateTime.Time.Value = "4 Days"; // again doesn't look like a DateTime
timing.Priority.Value = "20191117120000"; // assigning a date to priority?
timing.Condition.Value = "20191119180000"; // assigning a date to a condition?
timing.Text.Value = "R"; // pretty sure this is not intended
timing.Conjunction.Value = "PRN SNOMED"; // same here The output of encoded TQ Quantity/Timing (ORC-7) would look like this: |
Beta Was this translation helpful? Give feedback.
-
Let me Check I think This Will Work Thank You Very Much
…________________________________
From: Jake Aitchison ***@***.***>
Sent: 11 December 2024 09:17 PM
To: nHapiNET/nHapi ***@***.***>
Cc: Raseem001 ***@***.***>; Author ***@***.***>
Subject: Re: [nHapiNET/nHapi] HL7 Message ORC Segment GetQuantityTiming Part Cant Able to Add RepeatPattern Subelements Using NHapi.Model.V25 (Issue #619)
If you need it exactly as per the sample, you would need to assign values that do not match the fields intended use case:
var timing = orc.GetQuantityTiming(0);
timing.Interval.RepeatPattern.Value = "QID";
timing.Duration.Value = "four times a day at institution-specified times"; // is this a duration?
timing.StartDateTime.Time.Value = "MALAFFI"; // doesn't look like a Start Date Time?
timing.EndDateTime.Time.Value = "4 Days"; // again doesn't look like a DateTime
timing.Priority.Value = "20191117120000"; // assigning a date to priority?
timing.Condition.Value = "20191119180000"; // assigning a date to a condition?
timing.Text.Value = "R"; // pretty sure this is not intended
timing.Conjunction.Value = "PRN SNOMED"; // same here
The output of encoded TQ Quantity/Timing (ORC-7) would look like this:
^QID^four times a day at institution-specified times^MALAFFI^4 Days^20191117120000^20191119180000^R^PRN SNOMED
—
Reply to this email directly, view it on GitHub<#619 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/BKVFDYSP45RSCKZLHZU6X332FBM75AVCNFSM6AAAAABTNAFRHCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMZWGM3DGMZRGQ>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
If you need it exactly as per the sample, you would need to assign values that do not match the fields intended use case: