|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.lanl.IDViewer.HL72XML
The class HL7ToXML takes a native HL7 string (PIDS) and
converts it to a DOM tree.
| Constructor Summary | |
HL72XML(java.lang.String xmlTraitDef)
Constructor declaration |
|
| Method Summary | |
boolean |
addHL7Component(org.w3c.dom.Document theDoc,
org.w3c.dom.Node theHL7RootNode,
java.lang.String theComponentID,
java.lang.String theComponentValue,
java.lang.String theComponentType,
int theComponentOrder)
Adds an HL7 component to a specified HL7 tree node. |
org.w3c.dom.Node |
convertTraitToXML(org.w3c.dom.Document theDoc,
java.lang.String traitOrigin,
java.lang.String traitID,
java.lang.String traitValue,
boolean buildSummaryNode)
Converts a native HL7 string (PIDS) to a DOM tree. |
org.w3c.dom.Node |
HL7Value(org.w3c.dom.Document theDoc,
java.lang.String traitID,
java.lang.String origin,
java.lang.String hl7Str,
boolean buildSummaryNode)
Converts a native HL7 string to a DOM tree. |
boolean |
isTraitIDKnown(java.lang.String traitID)
Checks whether a specific trait type is convertible by this class. |
static void |
main(java.lang.String[] argv)
Method declaration |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public HL72XML(java.lang.String xmlTraitDef)
xmlTraitDef - | Method Detail |
public boolean addHL7Component(org.w3c.dom.Document theDoc,
org.w3c.dom.Node theHL7RootNode,
java.lang.String theComponentID,
java.lang.String theComponentValue,
java.lang.String theComponentType,
int theComponentOrder)
theDoc - theHL7RootNode - theComponentID - theComponentValue - theComponentType - theComponentOrder -
true if the component was added successfully;
false otherwise.
public org.w3c.dom.Node HL7Value(org.w3c.dom.Document theDoc,
java.lang.String traitID,
java.lang.String origin,
java.lang.String hl7Str,
boolean buildSummaryNode)
theDoc - The HL7 Document used to create elementsorigin - the HL7 data sourcehl7Str - the native HL7 stringbuildSummaryNode - true: the resulting DOM tree
will contain a summary of the trait components
(if any) at the root node level
Example: "HL7/PatientName [Staab, Torsten, A]"
null if the
parsing failedpublic boolean isTraitIDKnown(java.lang.String traitID)
isTraitIDKnown in interface TraitToXMLtraitID - the trait identifier (e.g., HL7/PatientName)
true if the converter can convert the trait type;
false otherwise
public org.w3c.dom.Node convertTraitToXML(org.w3c.dom.Document theDoc,
java.lang.String traitOrigin,
java.lang.String traitID,
java.lang.String traitValue,
boolean buildSummaryNode)
convertTraitToXML in interface TraitToXMLtraitOrigin - the origin of the traittraitID - the trait identifier (e.g., HL7/PatientName)traitValue - the actual value of the traitbuildSummaryNode - true: the resulting DOM tree
will contain a summary of the trait components
(if any) at the root node level
Example: "HL7/PatientName [Staab, Torsten, A]"
null if the
parsing failedpublic static void main(java.lang.String[] argv)
argv -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||