void buildRxeAndOrcSegments(OMP_O09_PID omp_o09, IList <string> rxNumbers) { string nowTimestamp = DateTime.Now.ToString("yyyyMMddhhmmss"); for (int i = 0; i < rxNumbers.Count; i++) { RXE rxe = omp_o09.getRxe(i); rxe.QuantityTiming.Quantity.Quantity.Value = "1"; rxe.QuantityTiming.StartDateTime.TimeOfAnEvent.Value = nowTimestamp; rxe.GiveCode.Identifier.Value = "RF"; rxe.GiveCode.NameOfCodingSystem.Value = "HL70119"; rxe.GiveAmountMinimum.Value = "1"; rxe.GiveUnits.Identifier.Value = "1 refill unit"; rxe.PrescriptionNumber.Value = rxNumbers[i]; ORC orc = omp_o09.getOrc(i); orc.PlacerOrderNumber.EntityIdentifier.Value = rxNumbers[i] + "-" + nowTimestamp; orc.OrderControl.Value = "RF"; } }
void buildRxeAndOrcSegments(OMP_O09_PID omp_o09, IList<string> rxNumbers) { string nowTimestamp = DateTime.Now.ToString("yyyyMMddhhmmss"); for (int i = 0; i < rxNumbers.Count; i++) { RXE rxe = omp_o09.getRxe(i); rxe.QuantityTiming.Quantity.Quantity.Value = "1"; rxe.QuantityTiming.StartDateTime.TimeOfAnEvent.Value = nowTimestamp; rxe.GiveCode.Identifier.Value = "RF"; rxe.GiveCode.NameOfCodingSystem.Value = "HL70119"; rxe.GiveAmountMinimum.Value = "1"; rxe.GiveUnits.Identifier.Value = "1 refill unit"; rxe.PrescriptionNumber.Value = rxNumbers[i]; ORC orc = omp_o09.getOrc(i); orc.PlacerOrderNumber.EntityIdentifier.Value = rxNumbers[i] + "-" + nowTimestamp; orc.OrderControl.Value = "RF"; } }