In the below message need to identify following values :
Pid 5 -> first part before carat in a variable (ex : Vinosfs4061)
Pid 5 -> second part in a different variable (ex : Bertosfsfld1613)
pid 11 -> copy the value to a variable with no ^
There are 4 rows for DG1 , I need 3 column to be identified and updated in an array say array1
DG1 3 - > I25.10 in a array1
DG1 3 -> I50.9 in a array2
PV1.6 into a variable.
Once these are identified in Java script I have to run this in postman and the requirement is for java script code should work in postman.
Message ::
MSH|^~\&|HC|50104|testr|testr|20200721135946||ADT^A04|1818533|P|2.5|||AL|AL
EVN|A04|20200721135946||||20200721135946
PID|1|^^^1158^PE|12874041^^^1158^MR~01976905^^^1158^PI~1976905^^^1158^PS~01555662^^^1158^AI||Vinosfs4061^Bertosfsfld1613^^^||19300813|F||CA|225 NEWTOWN ROAD^HOSPICE UNIT^WARMINSTER^PA^18974-5221^USA^^BUCKS|BUCKS|2154416831~~|~~||M|JE|01555662^^^1158^AI|186704985|||CA|||||||
PD1|||2
NK1|1|Tava^Alla^^^|EC^EMERGENCY CONTACT^HC|^^^^^^^|2674754413~~|
PV1|1|O|^Room^310^AMHWARMI|R|||SHEEDMAR^SHEEDY^MARIE^^CRNP^|ARIAHEALTH^ARIA HEALTH TORRESDALE HOSPITAL^^^^||||||||||HS|01555662|MC^20200909000000||||||||||||||||||||||||20200909000000|
PV2|||||||||||||||||||||||52^AMH Home Care Warminster Hospice|Y
DG1|1|I10|I25.10|ATHSCL HEART DISEASE|20200718000000|W|||||||||1
DG1|2|I10|I50.9|HEART FAILURE UNSPE|20200718000000|W|||||||||2
DG1|3|I10|F03.90|UNSPECIFIED DEMENTIA|20200718000000|W|||||||||3
DG1|4|I10|E78.5|HYPERLIPIDEMIA UNSP|20200718000000|W|||||||||4
PR1||||||
ROL|1|AD|CM^^HC|ARENANA^ARENA-GOGAL^NANCY^^RN^|20200721|
GT1|1|01976905^^^1158^GN|Vinokur^Bertold^^^||225 NEWTOWN ROAD^HOSPICE UNIT^WARMINSTER^PA^18974-5221^USA^^BUCKS|2154416831~~|~~|19300813000000|F||01|187704985
IN1|1|MEDICARE HOSP|MEDICARE|MEDICARE|Cigna Government Services CGS^1CameronHillCirc STE 0060^CHATTANOOGA^TN^37402^USA^^HAMILTON||~~|||||20200721|||MC|Vinokur^Bertold1214^^^|01|19300813|225 NEWTOWN ROAD^HOSPICE UNIT^WARMINSTER^PA^18974-5221^USA^^BUCKS|Y||1|||||Y|||||||||6MN5J71CY88|||||||F||||||01976905
IN2||||||6MN5J71CY88||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||01^SELF^HC
ZG1|I2510^P~I509^R~F0390^R~E785^R
ZL1|20200721|IC|20200831||12|20200831||Nancy Gogal|7867^AMH HOSPICE AT WARMINSTER ICRP^AMHWARMICRP^C^N^52^AMH Home Care Warminster Hospice
Hi, I'm writing to be considered for the position of PHP Developer. With over 8 years of experience in development and a wide skill set. You can see an example of one of those projects in my portfolio here: https://www.freelancer.com/u/aswebsmart
I'm interested to hear more about the project. If you award me the project I'd be very happy to discuss this further and get started for you as soon as possible.
Thanks!
Arun