|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectau.gov.nehta.vendorlibrary.pcehr.clients.common.util.MetadataUtils
public final class MetadataUtils
Metadata utilities.
Method Summary | |
---|---|
static byte[] |
calculateSha1Hash(byte[] value)
Calculates SHA-1 hash from a byte array. |
static java.util.Date |
parseDate(java.lang.String str)
|
static DocumentMetadata |
toDocumentMetadata(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader,
byte[] cdaDocument)
Helper method used to construct a DocumentMetadata object. |
static DocumentMetadata |
toDocumentMetadata(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader,
org.w3c.dom.Document rootDocument)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static byte[] calculateSha1Hash(byte[] value)
value
- Input byte array.
public static DocumentMetadata toDocumentMetadata(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader, byte[] cdaDocument) throws javax.xml.parsers.ParserConfigurationException, java.io.IOException, org.xml.sax.SAXException, javax.xml.xpath.XPathExpressionException
commonHeader
- PCEHR request common header.cdaDocument
- CDA root document.
DocumentMetadata
populated.
javax.xml.parsers.ParserConfigurationException
- Thrown in the event
java.io.IOException
org.xml.sax.SAXException
javax.xml.xpath.XPathExpressionException
public static DocumentMetadata toDocumentMetadata(au.net.electronichealth.ns.pcehr.xsd.common.commoncoreelements._1.PCEHRHeader commonHeader, org.w3c.dom.Document rootDocument) throws javax.xml.xpath.XPathExpressionException
javax.xml.xpath.XPathExpressionException
public static java.util.Date parseDate(java.lang.String str)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |