infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Cloverleaf
new to XML
Gene Millard
I am looking for step by step instructions on how to set up XML starting with setting up the XML package manager.
Any help would be greatly appreciated.
Find more posts tagged with
Clovertech
Comments
Jim Kosloskey
Assuming you have a Schema, I have attached a Word Document with step-by-step to compile your Schema and start Xlating.
I have not done a lot of XML but if you would like to brainstorm, email me.
Setting_up_using_a_Schema1.docx
Gene Millard
Thank you for the information. I will have to find where the Schema is.
Jim Kosloskey
You are welcome. It is possible you do not have a schema. It appears a lot of vendors are sending XML messages which are formulated on the fly and thus have no published Schema. It is also possible the published Schema is a PDF Document instead of a .xsd file (I have seen that too often).
If this is a FHIR XML message, the packages should already be there in Cloverleaf depending on the release. But I think you can get the .xsd files for various FHIR message sets online.
The little XML I have done, I found it useful to have an XML Authoring/editing tool (like XML SPY - there are others) as a couple of the schemas I was given were not well formed. The vendor wanted to blame Cloverleaf for the issue (don't they all?) but once I showed the commercial Authoring/editing tool also rejected the Schema, the vendor shut up and corrected the issue. That alone was worth the investment.
Hopefully you have a .xsd file and it is well-formed.
Gene Millard
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Edited by C. Beebe using Notepad++ on 2015 09 09 -->
<xs:schema targetNamespace="urn:hl7-org:v3" xmlns:xs="
http://www.w3.org/2001/XMLSchema
" xmlns="urn:hl7-org:v3" xmlns:mif="urn:hl7-org:v3/mif" elementFormDefault="qualified">
<xs:include schemaLocation="POCD_MT000040UV.xsd"/>
<xs:element name="ClinicalDocument" type="POCD_MT000040UV.ClinicalDocument"/>
</xs:schema>
This is what I got.
Get error occurred whild attempting to compile.
Compile command failed with status 1:
Warning generated during parsing, Unable to open primary document entity.
'//opt/cloverleaf/cis19.1/integrator/gene/formats/xml/CCD/POCD_M000040uv.xsd' - Line 0, Col 0
Jim Kosloskey
Gene,
I am not an XML expert here but that does not look like a Schema to me, but it does look like it references a schema (<xs:include schemaLocation=”POCD_MT000040UV.xsd”/>).
Do you have the POCD_MT000040UV.xsd file?
It looks like this is a CDA Schema - I found the file here
CDA-core-2.1/schemas/normative/POCD_MT000040UV02.xsd at master · HL7/CDA-core-2.1 · GitHub
.
You can download from there.
Are you sure the file you tried to compile has a .xsd extension. Of course, I could be way off base here not having done more than a couple of XML Integrations and no CDA.
Gene Millard
Jim,
Using the POCD_MT000040UV.xsd file I had to download other xsd files.
Once I got those files I get this when I tried to compile the POCD file.
[ERROR] The schema must contain at least one global element declaration.
Jim Kosloskey
Gene,
I don't have anything to offer - sorry. Like I said I am not an XML expert and have no CDA experience. Perhaps someone who has worked with CDA or XML more can chime in.
But the entity that requires you to use this should provide an xsd I would think. Have you tried to get a good schema from them?
Gene Millard
Jim,
I have contacted the people who sent me the XSD file asking if they have other files.
Gene Millard
Jim,
I got the package to compile. Had to download 5 other xsd files from the site you gave me.
Next problem.
Error in translation.
MESSAGE 1
Error generated during parsing. - No declaration found for element 'sdtc:dischargeDispositionCode' - Line 1, Col 9647
XML Error Source - Message Body for mid [0.0.0]
1:'110000-0400"/></effectiveTime><sdtc:dischargeDispositionCode nullFlavor="UNK"/><'
Jim Kosloskey
Gene,
First - congrats on getting the schema to compile.
Is this being used as Source or Destination in the Xlate?
Jim
Gene Millard
Jim,
It would be the source.
This is in the schema file
<xs:element name="dischargeDispositionCode" type="CE" minOccurs="0"/>
but nothing for
sdtc:dischargeDispositionCode
Jim Kosloskey
Gene,
So, I am assuming you have an input XML file to be matched against the schema. Does the Source file have that element but the schema does not or vice-versa?
Jim
Gene Millard
Jim,
The source file has that element but the schema does not.
Jim Kosloskey
Gene,
Try this link
Understanding C-CDA and the C-CDA Companion Guide - Consolidated CDA Release 2.1 StructureDefinition Publication v2.1 (fhir.org)
and search for 'sdtc:dischargeDispositionCode'.
I did a brief reading and there is an extensions folder referenced therein which you might have to download.
Jim
Gene Millard
Jim,
I will check it out. Thanks.
Lynelle Harper
Following closely, I have to put together an xml to hl7 for RTLS
Gene Millard
Jim,
I found an SDTC.xsd file. Now to figure out how to incorporate it into the project.
Jim Kosloskey
Gene,
From that document:
To perform schema validation on a CDA document instance properly, it is necessary to use the schema that includes the CDA R2 schema extensions. All extensions will use the namespace
urn:hl7-org:sdtc
. As a document consumer, the possibility of schema extensions needs to be considered.
Perhaps you need to add something like:
xs:schema targetNamespace=”urn:hl7-org:stdc"
somewhere in the Schema.
I am really just guessing.
Jim