本文整理匯總了Java中ca.uhn.hl7v2.model.v22.segment.NTE類的典型用法代碼示例。如果您正苦於以下問題:Java NTE類的具體用法?Java NTE怎麽用?Java NTE使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
NTE類屬於ca.uhn.hl7v2.model.v22.segment包,在下文中一共展示了NTE類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getPdf
import ca.uhn.hl7v2.model.v22.segment.NTE; //導入依賴的package包/類
public byte[] getPdf() {
NTE nte = message.getPATIENT_RESULT().getORDER_OBSERVATION().getNTE();
String base64EncodedPdfContent;
try {
base64EncodedPdfContent = nte.getComment(0).getValue();
} catch (HL7Exception e) {
return null;
}
// break on empty PDFs
if (base64EncodedPdfContent == null || base64EncodedPdfContent.isEmpty()) {
return null;
}
byte[] pdf = Base64.decodeBase64(base64EncodedPdfContent);
return pdf;
}
示例2: getComments
import ca.uhn.hl7v2.model.v22.segment.NTE; //導入依賴的package包/類
private String getComments(ORU_R01_ORDER_OBSERVATION oobs, int i){
String commentNTE = null;
int size = oobs.getNTEReps();
if (i > -1) {
size = oobs.getOBSERVATION(i).getNTEReps();
}
for (int n = 0; n < size; n++) {
NTE nte = oobs.getNTE(n);
if (i > -1) {
nte = oobs.getOBSERVATION(i).getNTE(n);
}
AbstractPrimitive comment = nte.getNte3_Comment(0);
if (comment != null) {
if (commentNTE != null) {
commentNTE += "\n";
} else {
commentNTE = "";
}
commentNTE += comment.getValue();
}
}
return commentNTE;
}
示例3: getPdfFileName
import ca.uhn.hl7v2.model.v22.segment.NTE; //導入依賴的package包/類
public String getPdfFileName() {
NTE nte = message.getPATIENT_RESULT().getORDER_OBSERVATION().getNTE();
if (nte == null) {
return null;
}
if (nte.getNte2_SourceOfComment() == null) {
return null;
}
return nte.getNte2_SourceOfComment().getValue();
}
示例4: getProviderNote
import ca.uhn.hl7v2.model.v22.segment.NTE; //導入依賴的package包/類
public String getProviderNote() {
try {
NTE nte = message.getPATIENT_RESULT().getORDER_OBSERVATION().getNTE(2);
return decode(nte.getComment(0).getValue());
} catch (HL7Exception e) {
throw new IllegalStateException("Unable to get comment field from the message", e);
}
}
示例5: getRecommendations
import ca.uhn.hl7v2.model.v22.segment.NTE; //導入依賴的package包/類
public String getRecommendations() {
try {
NTE nte = message.getPATIENT_RESULT().getORDER_OBSERVATION().getNTE(1);
String commentValue = nte.getComment(0).getValue();
return decode(commentValue);
} catch (HL7Exception e) {
throw new IllegalStateException("Unable to get comment field from the message", e);
}
}