Repository navigation
HL7 Message ORC Segment GetQuantityTiming Part Cant Able to Add RepeatPattern Subelements Using NHapi.Model.V25 #619
Description
Activity
The error you are seeing is accurate, according to the 2.5 specification the quantity (data type
TQQuantity/Timing) does not contain a field calledIdentifiersee here for available fields.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
TQQuantity/Timing (ORC-7) would look like this:
^BID^twice a day at institution-specified times^20191117120000^20191119180000^R^^^^^&4 Days&MALAFFI
however I am not 100% sure based on your sample (ORC-7) which seems like it's not quite aligned with the HL7 standard.
^QID^four times a day at institution-specified times^MALAFFI^4 Days^20191117120000^20191119180000^R^PRN SNOMEDUnless 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:
&BID^^^20191117120000^20191119180000^R^QID^four times a day at institution-specified times^MALAFFI^4 Days^20191117120000^20191119180000^R^PRN SNOMED
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.
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- 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: ***@***.***>
- locked and limited conversation to collaborators
on Dec 12, 2024
Sir
I need to Add Repeat Pattern Following Data For Malaffi Submission but the Code Showing Error of Following
Csharp Code
RDS-O13 ORC Segment Sample Message :
ORC|NW|678998^^SYSTEMCODE|678998^^SYSTEMCODE||active||^QID^four times a day at institution-specified times^MALAFFI^4 Days^20191117120000^20191119180000^R^PRN SNOMED||20191113102719|GD18123^Test1^test4^^^^^^&SYSTEMCODE-DOHID|GD18123^Test1^test4^^^^^^&SYSTEMCODE-DOHID|GD18123^Test1^test4^^^^^^&SYSTEMCODE-DOHID