nextgenhealthcare / connect

The swiss army knife of healthcare integration.
Other
921 stars 277 forks source link

Mirth Transformer/Filter - Accessing attributes from root node is not possible from Message Tree #1131

Closed rbeckman-nextgen closed 4 years ago

rbeckman-nextgen commented 4 years ago

Mirth Transformer/Filter - Accessing attributes from root node is not possible from Message Tree

Work around: Only drag and drop does not work. You can still write javascript to access root node attributes.

Imported Issue. Original Details: Jira Issue Key: MIRTH-1128 Reporter: dans Created: 2009-06-18T18:24:08.000-0700

rbeckman-nextgen commented 4 years ago

Looks like this has been fixed already.

Imported Comment. Original Details: Author: leilanim Created: 2015-06-12T13:17:13.000-0700

rbeckman-nextgen commented 4 years ago

Understanding Root Node Attribute http://www.w3schools.com/dom/dom_nodes.asp Everything in an XML document is a node. The entire document is a document node. Every XML element is an element node. The text in the XML elements are text nodes. Every attribute is an attribute node. Comments are comment nodes.

XML template being used for testing From MC Training > Sample Messages > XML > SampleCCDDocument.xml For this example the root node is and attribute is {color:red} xsi:schemaLocation="urn:hl7-org:v3 CDA.xsd" {color}

` <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="CCD.xsl"?>

Good Health Clinic Continuity of Care Document Henry Levin the 7th Good Health Clinic Good Health Clinic Good Health Clinic 17 Daws Rd. Blue Bell MA 02368 Kenneth Ross Henrietta Levin Dr.RobertDolin Good Health Clinic
Summary Purpose Transfer of care
Payers
Payer namePolicy type / Coverage typeCovered party ID Authorization(s)
Good Health Insurance Extended healthcare / Self 14d4a520-7aae-11db-9fe1-0800200c9a66 Colonoscopy
Good Health Insurance
Advance Directives
DirectiveDescriptionVerificationSupporting Document(s)
Resuscitation status Do not resuscitate Dr. Robert Dolin, Nov 07, 1999 Advance directive
Functional Status
Functional Condition Effective Dates Condition Status
Dependence on cane1998Active
Memory impairment1999Active
Problems
ConditionEffective DatesCondition Status
Asthma1950Active
PneumoniaJan 1997Resolved
"Mar 1999Resolved
Myocardial InfarctionJan 1997Resolved
Family history Father (deceased)
DiagnosisAge At Onset
Myocardial Infarction (cause of death)57
Hypertension40
Mother (alive)
DiagnosisAge At Onset
Asthma30
Social History
Social History ElementDescriptionEffective Dates
Cigarette smoking1 pack per day1947 - 1972
"None1973 -
Alcohol consumptionNone1973 -
1 pack per day None None
Allergies, Adverse Reactions, Alerts
SubstanceReactionStatus
PenicillinHivesActive
AspirinWheezingActive
CodeineNauseaActive
Medications
MedicationInstructionsStart DateStatus
Albuterol inhalant2 puffs QID PRN wheezing Active
Clopidogrel (Plavix)75mg PO daily Active
Metoprolol25mg PO BID Active
Prednisone20mg PO dailyMar 28, 2000Active
Cephalexin (Keflex)500mg PO QID x 7 days (for bronchitis)Mar 28, 2000No longer active
Good Health Clinic Albuterol inhalant Clopidogrel Plavix Metoprolol Prednisone Cephalexin Keflex
Medical Equipment
Supply/DeviceDate Supplied
Automatic implantable cardioverter/defibrillatorNov 1999
Total hip replacement prosthesis1998
Wheelchair1999
Good Health Prostheses Company
Immunizations
VaccineDateStatus
Influenza virus vaccine, IMNov 1999Completed
Influenza virus vaccine, IMDec 1998Completed
Pneumococcal polysaccharide vaccine, IMDec 1998Completed
Tetanus and diphtheria toxoids, IM1997Completed
Influenza virus vaccine
Influenza virus vaccine
Pneumococcal polysaccharide vaccine
Tetanus and diphtheria toxoids
Vital Signs
Date / Time: Nov 14, 1999April 7, 2000
Height177 cm177 cm
Weight86 kg88 kg
Blood Pressure132/86 mmHg145/88 mmHg
Results
 March 23, 2000April 06, 2000
Hematology
HGB (M 13-18 g/dl; F 12-16 g/dl)13.2 
WBC (4.3-10.8 10+3/ul)6.7 
PLT (135-145 meq/l)123* 
Chemistry
NA (135-145meq/l) 140
K (3.5-5.0 meq/l) 4.0
CL (98-106 meq/l) 102
HCO3 (18-23 meq/l) 35*
M 13-18 g/dl; F 12-16 g/dl
Procedures
ProcedureDate
Total hip replacement, left1998
Encounters
EncounterLocationDate
Checkup ExaminationGood Health ClinicApr 07, 2000
Checkup Examination Good Health Clinic
Plan
Planned ActivityPlanned Date
Pulmonary function testApril 21, 2000

`

Imported Comment. Original Details: Author: minht Created: 2015-08-18T14:17:35.000-0700

rbeckman-nextgen commented 4 years ago

Server(s) and URLs Used: Run Mirth Connect on local OSX Yosemite 10.10 Version(s)/Build(s) to reproduce failure: mirthconnect-2.2.3.6825.b80-unix Version(s)/Build(s) to verify fixes: mirthconnect-3.3.0.7719.b1682-unix & mirthconnect-3.0.3.7171.b1190-unix How Tested (list tests run):

  • Create test channel mirth-1128
  • Set Data Types = XML for inbound & outbound
  • From Source Connector > Edit Filter > Select Message Templates tab > select "XML" for Data Type Click on Open or Paste in the XML template (using SampleCCDDocument.xml) ** Select Message Trees tab > Right Click on XML-Message and select Expand
  • Verify if Attribute for Root node is accessible from Message Trees

Verified Fixed: YES

Imported Comment. Original Details: Author: minht Created: 2015-08-18T14:31:40.000-0700

rbeckman-nextgen commented 4 years ago

Checking with Leilani Moscardon on Why each of the "xmlns" is also attribute but they are not listed under Message Trees only the "xsi" is listed, is there a reason for this ?

Imported Comment. Original Details: Author: minht Created: 2015-08-18T14:59:07.000-0700

rbeckman-nextgen commented 4 years ago

From Lani Moscardon: so those are namespaces, http://www.w3schools.com/xml/xml_namespaces.asp those generally get stripped from the original document

Imported Comment. Original Details: Author: minht Created: 2015-08-18T17:17:13.000-0700

rbeckman-nextgen commented 4 years ago

successfully verified FIXED in mirthconnect-3.3.0.7719.b1682-unix

Imported Comment. Original Details: Author: minht Created: 2015-08-18T17:17:55.000-0700