rbeckman-nextgen / test-mc4

0 stars 0 forks source link

XCPD Listener(Interoperability Suite) | livingSubjectName Node Missing given Element from XML -> JSON conversion #4303

Closed rbeckman-nextgen closed 4 years ago

rbeckman-nextgen commented 4 years ago

When an XCPD message gets sent to the XCPD Listener with the following livingSubjectName format, the middle name overrides the first name, and the JSON is missing the first name. `

Amy Davidson C LivingSubject.name

**Actual Outcome:** "livingSubjectName" : { "value" : { "@xmlns:xsi" : "http://www.w3.org/2001/XMLSchema-instance", "@type" : { "@xmlnsprefix" : "xsi", "$" : "PN" }, "given" : "C", "family" : "Davidson" }, **Expected Outcome:** "livingSubjectName" : { "value" : { "family" : { "@partType" : "FAM", "$" : "Davidson" }, "given" : [ { "@partType" : "GIV", "$" : "Amy" }, { "@partType" : "GIV", "$" : "C" } ] } `

Imported Issue. Original Details: Jira Issue Key: MIRTH-4452 Reporter: narupley Created: 2019-09-17T08:44:51.000-0700