
Package org.hl7.fhir.convertors.misc
Class CDAUtilities
- java.lang.Object
-
- org.hl7.fhir.convertors.misc.CDAUtilities
-
public class CDAUtilities extends Object
-
-
Constructor Summary
Constructors Constructor Description CDAUtilities(InputStream stream)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
checkTemplateId(Element e, String templateId)
Element
getById(Element id, String childName)
This method looks up an object by it's id, and only returns it if has a child by the given name (resolving identifier based cross references)Element
getByXmlId(String id)
Element
getChild(Element element, String name)
Element
getChild(Element e, String[] names)
Element
getChildByAttribute(Element element, String name, String attrname, String value)
List<Element>
getChildren(Element element, String name)
Element
getDescendent(Element element, String path)
Element
getDescendent(Element e, String[] path)
Element
getElement()
Element
getlastChild(Element e)
String
getSeverity(Element observation)
String
getStatus(Element act)
boolean
hasTemplateId(Element e, String tid)
String
showTemplateIds(Element element)
-
-
-
Constructor Detail
-
CDAUtilities
public CDAUtilities(InputStream stream) throws Exception
- Throws:
Exception
-
-
Method Detail
-
getElement
public Element getElement()
-
checkTemplateId
public void checkTemplateId(Element e, String templateId) throws Exception
- Throws:
Exception
-
getChildByAttribute
public Element getChildByAttribute(Element element, String name, String attrname, String value) throws Exception
- Throws:
Exception
-
getChildren
public List<Element> getChildren(Element element, String name)
-
getDescendent
public Element getDescendent(Element element, String path) throws Exception
- Throws:
Exception
-
getDescendent
public Element getDescendent(Element e, String[] path) throws Exception
- Throws:
Exception
-
hasTemplateId
public boolean hasTemplateId(Element e, String tid)
-
getSeverity
public String getSeverity(Element observation) throws Exception
- Throws:
Exception
-
showTemplateIds
public String showTemplateIds(Element element)
-
getlastChild
public Element getlastChild(Element e)
-
getById
public Element getById(Element id, String childName) throws Exception
This method looks up an object by it's id, and only returns it if has a child by the given name (resolving identifier based cross references)- Parameters:
id
-childName
-- Returns:
- Throws:
Exception
-
getByXmlId
public Element getByXmlId(String id)
-
-