简体   繁体   English

笑声:映射器:无法将数据到 map 到变量

[英]Mirth: Mapper: Cannot get data to map to variables

I'm learning Mirth and ran into a weird issue.我正在学习 Mirth 并遇到了一个奇怪的问题。

I created an HL7 to HL7 channel.我创建了一个 HL7 到 HL7 通道。 I can get the v2.3 hl7 messages into the source and out of/to the destination.我可以将 v2.3 hl7 消息输入源和输出/输出到目标。 no problem.没问题。 But when i set up a mapper step in the transformer to map data to a variable the data from the message will not copy over to the variable.但是,当我在转换器中设置映射器步骤到 map 数据到变量时,消息中的数据不会复制到变量中。 Variable is just blank变量只是空白

variable name: patDOB2 mapping: msg['PID']['PID.7']['PID.7.1'].toString()变量名:patDOB2 映射:msg['PID']['PID.7']['PID.7.1'].toString()

i used the same message for inbound and outbound templates and used that message for testing我对入站和出站模板使用相同的消息,并使用该消息进行测试

MSH|^~&|AccMgr|1|||20050110045504||ADT^A01|599102|P|2.3||| MSH|^~&|AccMgr|1|||20050110045504||ADT^A01|599102|P|2.3||| EVN|A01|20050110045502||||| EVN|A01|20050110045502||||| PID|1||10006579^^^1^MRN^1||DUCK^DONALD^D||19241010|M||1|111 DUCK ST^^FOWL^CA^999990000^^M|1|8885551212|8885551212|1|2||40007716^^^AccMgr^VN^1|123121234|||||||||||NO NK1|1|DUCK^HUEY|SO|3583 DUCK RD^^FOWL^CA^999990000|8885552222||Y|||||||||||||| PID|1||10006579^^^1^MRN^1||DUCK^DONALD^D||19241010|M||1|111 鸭街^^FOWL^CA^999990000^^M|1|8885551212|8885551212| 1|2||40007716^^^AccMgr^VN^1|123121234||||||||||NO NK1|1|DUCK^HUEY|SO|3583 鸭路^^FOWL^CA^999990000|8885552222 ||Y|||||||||||||| PV1|1|I|PREOP^101^1^1^^^S|3|||37^DISNEY^WALT^^^^^^AccMgr^^^^CI|||01||||1|||37^DISNEY^WALT^^^^^^AccMgr^^^^CI|2|40007716^^^AccMgr^VN|4|||||||||||||||||||1||G|||20050110045253|||||| PV1|1|I|PREOP^101^1^1^^^S|3|||37^DISNEY^WALT^^^^^^AccMgr^^^^CI|||01||||1|| |37^迪士尼^沃尔特^^^^^^AccMgr^^^^CI|2|40007716^^^AccMgr^VN|4|||||||||||||||||1 ||G|||20050110045253|||||| GT1|1|8291|DUCK^DONALD^D||111^DUCKST^^FOWL^CA^999990000|8885551212||19241010|M||1|123121234||||#Cartoon Ducks Inc|111^DUCK ST^^FOWL^CA^999990000|8885551212||PT| GT1|1|8291|DUCK^DONALD^D||111^DUCKST^^FOWL^CA^999990000|8885551212||19241010|M||1|123121234||||#卡通鸭子公司|111^DUCK ST^^ FOWL^CA^999990000|8885551212||PT| DG1|1|I9|71596^OSTEOARTHROS NOS-L/LEG ^I9|OSTEOARTHROS NOS-L/LEG ||A| DG1|1|I9|71596^OSTEOARTHROS NOS-L/LEG ^I9|骨关节炎 NOS-L/LEG ||A| IN1|1|MEDICARE|3|MEDICARE|||||||Cartoon Ducks Inc|19891001|||4|DUCK^DONALD^D|1|19241010|111^DUCK ST^^FOWL^CA^999990000|||||||||||||||||123121234A||||||PT|M|111 DUCK ST^^FOWL^CA^999990000|||||8291 IN2|1||123121234|Cartoon Ducks Inc|||123121234A|||||||||||||||||||||||||||||||||||||||||||||||||||||||||8885551212 IN1|2|NON-PRIMARY|9|MEDICAL MUTUAL CALIF.|PO BOX 94776^^HOLLYWOOD^CA^441414776||8003621279|PUBSUMB|||Cartoon Ducks Inc||||7|DUCK^DONALD^D|1|19241010|111 DUCK ST^^FOWL^CA^999990000|||||||||||||||||056269770||||||PT|M|111^DUCK ST^^FOWL^CA^999990000|||||8291 IN2|2||123121234|Cartoon Ducks Inc||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||8885551212 IN1|3|SELF PAY|1|SELF PAY|||||||||||5||1 IN1|1|医疗|3|医疗|||||||卡通鸭子公司|19891001|||4|DUCK^DONALD^D|1|19241010|111^DUCK ST^^FOWL^CA^999990000||| ||||||||||||123121234A||||||PT|M|111 DUCK ST^^FOWL^CA^999990000|||||8291 IN2|1||123121234|卡通鸭子公司|||123121234A|||||||||||||||||||||||||||||||||||||||||| |||||||||||8885551212 IN1|2|NON-PRIMARY|9|MEDICAL MUTUAL CALIF.|邮政信箱 94776^^HOLLYWOOD^CA^441414776||8003621279|PUBSUMB|||Cartoon Ducks Inc| |||7|DUCK^DONALD^D|1|19241010|111 DUCK ST^^FOWL^CA^999990000|||||||||||||||056269770||||||PT |M|111^DUCK ST^^FOWL^CA^999990000|||||8291 IN2|2||123121234|卡通鸭子公司||||||||||||||||||| ||||||||||||||||||||||||||||||||||||8885551212 IN1|3|自费|1|自费||||||||||5||1

I have tried it as every kind of map: global channel, channel, etc I have tried it in an iterator I have tried it with different mappings within "msg" I have tired it with all the above using tmp I must be doing something very very wrong or missing some very simple step because i have literally followed along with 4 different tutorials and still it is not working.我已经尝试过各种 map:全局通道、通道等非常错误或遗漏了一些非常简单的步骤,因为我确实遵循了 4 个不同的教程,但它仍然无法正常工作。

I can get static data like "dog" or mirth generated data like a timestamp or uuid into the variable but not data from the msg or tmp.我可以将 static 数据(例如“dog”)或诸如时间戳或 uuid 之类的欢乐生成数据放入变量中,但不能从 msg 或 tmp 中获得数据。

I actually broke down and made the HL7 to HL7 channel to test this problem because on a HL7 to JSON channel the data from the msg segments was not copying over to the JSON file BUT timestamp, UUID, and static data would. I actually broke down and made the HL7 to HL7 channel to test this problem because on a HL7 to JSON channel the data from the msg segments was not copying over to the JSON file BUT timestamp, UUID, and static data would.

if needed i can attach a copy of the transformer or channel.如果需要,我可以附上变压器或频道的副本。 thanks谢谢

To aid assistance, kindly share the Channel, a raw source file and a desired template of the output file to aid assistance or a screenshot of the message builder or Javascript transformer code you are using to assign variables.为了帮助,请分享频道、原始源文件和 output 文件的所需模板以帮助帮助或消息生成器的屏幕截图或 Javascript 用于分配变量的转换器代码。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM