I am getting the error message in CPRS, while we create an allergy from my application and integrated to Vista. I passed the below fields value to EDITSAVE^ORWDAL32(ORY, ORALIEN, ORDFN, OREDITED) RPC. then allergy created in Vista, and it is shows in CPRS. but I am getting the LOCK ^XTMP("GMRAED",123) for that patient in Manage Locks. it is not release after allergy completion
But if after that, I create an allergy from CPRS, that time, I am getting the error. Shall you please guide me step by step process, why this error is happening and how to resolve it.
![Capture.PNG](https://groups.google.com/group/hardhats/attach/46fc8f531592/Capture.PNG?part=0.1&view=1)
I am passing the parameters to EDITSAVE
^ORWDAL32 RPC
ORY = " "
ORALIEN = 0
ORDFN = Patient ID (123)
OREDITED = ("GMRACHT",0) =1
("GMRACHT",1) =3240624.0301
("GMRACMTS",0) =4
("GMRACMTS",1) ="TEST"
("GMRACMTS",2) ="TEST1"
("GMRACMTS",3) ="TEST2"
("GMRACMTS",4) ="TEST3"
("GMRAGNT") ="RED BELL PEPPERS^568^120.82,"
("GMRANATR") ="A^ALLERGY"
("GMRAOBHX") ="o^OBSERVED"
("GMRAORDT") =3240624.0301
("GMRAORIG") =64
("GMRARDT") =20240624
("GMRASEVR") =1
("GMRASYMP",0) =5
("GMRASYMP",1) ="528^ABNORMAL VISION"
("GMRASYMP",2) ="52^CHILLS"
("GMRASYMP",3) ="9^DIARRHEA"
("GMRASYMP",4) ="67^DRY MOUTH"
("GMRASYMP",5) ="51^CHEST PAIN"
("GMRATYPE") ="F^FOOD"
Thanks,
Karuppasamy S