本文整理匯總了Java中ca.uhn.hl7v2.model.v22.datatype.CN類的典型用法代碼示例。如果您正苦於以下問題:Java CN類的具體用法?Java CN怎麽用?Java CN使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
CN類屬於ca.uhn.hl7v2.model.v22.datatype包,在下文中一共展示了CN類的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: getOrderingProvider
import ca.uhn.hl7v2.model.v22.datatype.CN; //導入依賴的package包/類
public String getOrderingProvider() {
ORU_R01_PATIENT_RESULT patientResult = message.getPATIENT_RESULT();
if (patientResult == null) {
return null;
}
ORU_R01_ORDER_OBSERVATION orderObservation = patientResult.getORDER_OBSERVATION();
if (orderObservation == null) {
return null;
}
OBR obr = orderObservation.getOBR();
if (obr == null) {
return null;
}
CN orderingProvider = obr.getOrderingProvider();
if (orderingProvider == null) {
return null;
}
if (orderingProvider.getIDNumber() != null) {
return orderingProvider.getIDNumber().getValue();
}
return null;
}
示例2: extractOrc
import ca.uhn.hl7v2.model.v22.datatype.CN; //導入依賴的package包/類
private OrcMessage extractOrc(ORC orc) throws HL7Exception{
if (orc != null) {
OrcMessage orcMessage = new OrcMessage();
CN ops = orc.getOrderingProvider();
addNameValuesToOrcMessage(ops.getFamilyName(), ops.getGivenName(), orcMessage);
return orcMessage;
}
return null;
}
示例3: getFullDocName
import ca.uhn.hl7v2.model.v22.datatype.CN; //導入依賴的package包/類
private String getFullDocName(CN docSeg) {
String docName = "";
if (docSeg.getPrefixEgDR().getValue() != null)
docName = docSeg.getPrefixEgDR().getValue();
if (docSeg.getGivenName().getValue() != null) {
if (docName.equals(""))
docName = docSeg.getGivenName().getValue();
else
docName = docName + " " + docSeg.getGivenName().getValue();
}
if (docSeg.getMiddleInitialOrName().getValue() != null) {
if (docName.equals(""))
docName = docSeg.getMiddleInitialOrName().getValue();
else
docName = docName + " "
+ docSeg.getMiddleInitialOrName().getValue();
}
if (docSeg.getFamilyName().getValue() != null) {
if (docName.equals(""))
docName = docSeg.getFamilyName().getValue();
else
docName = docName + " " + docSeg.getFamilyName().getValue();
}
if (docSeg.getSuffixEgJRorIII().getValue() != null) {
if (docName.equals(""))
docName = docSeg.getSuffixEgJRorIII().getValue();
else
docName = docName + " "
+ docSeg.getSuffixEgJRorIII().getValue();
}
if (docSeg.getDegreeEgMD().getValue() != null) {
if (docName.equals(""))
docName = docSeg.getDegreeEgMD().getValue();
else
docName = docName + " " + docSeg.getDegreeEgMD().getValue();
}
return (docName);
}