本文整理汇总了Java中ca.uhn.hl7v2.model.v24.segment.OBX类的典型用法代码示例。如果您正苦于以下问题:Java OBX类的具体用法?Java OBX怎么用?Java OBX使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
OBX类属于ca.uhn.hl7v2.model.v24.segment包,在下文中一共展示了OBX类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: dispatchProcessFixture
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
@Override
protected void dispatchProcessFixture(AbstractMessage workingMessage)
throws HL7Exception {
ADT_A09 message = (ADT_A09) workingMessage;
ADT_A09 clonedMessage = new ADT_A09();
this.transform(message.getEVN(),
this.copySegment(message.getEVN(), clonedMessage.getEVN()));
this.transform(message.getMSH(),
this.copySegment(message.getMSH(), clonedMessage.getMSH()));
this.transform(message.getPD1(),
this.copySegment(message.getPD1(), clonedMessage.getPD1()));
this.transform(message.getPID(),
this.copySegment(message.getPID(), clonedMessage.getPID()));
this.transform(message.getPV1(),
this.copySegment(message.getPV1(), clonedMessage.getPV1()));
this.transform(message.getPV2(),
this.copySegment(message.getPV2(), clonedMessage.getPV2()));
this.transformDb1s(HapiUtil.getAll(workingMessage, DB1.class));
this.transformDg1s(HapiUtil.getAll(workingMessage, DG1.class));
this.transformObxs(HapiUtil.getAll(workingMessage, OBX.class));
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:23,代码来源:AbstractA09Processor.java
示例2: dispatchProcessFixture
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
@Override
protected void dispatchProcessFixture(AbstractMessage workingMessage)
throws HL7Exception {
ADT_A02 message = (ADT_A02) workingMessage;
ADT_A02 clonedMessage = new ADT_A02();
this.transform(message.getEVN(),
this.copySegment(message.getEVN(), clonedMessage.getEVN()));
this.transform(message.getMSH(),
this.copySegment(message.getMSH(), clonedMessage.getMSH()));
this.transform(message.getPD1(),
this.copySegment(message.getPD1(), clonedMessage.getPD1()));
this.transform(message.getPDA(),
this.copySegment(message.getPDA(), clonedMessage.getPDA()));
this.transform(message.getPID(),
this.copySegment(message.getPID(), clonedMessage.getPID()));
this.transform(message.getPV1(),
this.copySegment(message.getPV1(), clonedMessage.getPV1()));
this.transform(message.getPV2(),
this.copySegment(message.getPV2(), clonedMessage.getPV2()));
this.transformDb1s(HapiUtil.getAll(workingMessage, DB1.class));
this.transformObxs(HapiUtil.getAll(workingMessage, OBX.class));
this.transformRols(HapiUtil.getAll(workingMessage, ROL.class));
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:26,代码来源:AbstractA02Processor.java
示例3: renderOBX
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
private void renderOBX(OBX obx,int ID,String text,String type,String orderDetail,String identifierText) throws HL7Exception
{
obx.getSetIDOBX().setValue(Integer.toString(ID));
obx.getValueType().setValue(type);
if(identifierText==null)
{
obx.getObservationIdentifier().getIdentifier().setValue(Hl7Null);
}
else
{
obx.getObservationIdentifier().getText().setValue(HL7Utils.toHL7Text(identifierText));
}
obx.getObservationValue(0).setData(new FT(HL7Utils.toHL7Text(text)));
obx.getObservationResultStatus().setValue(orderDetail);
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:16,代码来源:O01VoMapper.java
示例4: dispatchProcessFixture
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
@Override
protected void dispatchProcessFixture(AbstractMessage workingMessage)
throws HL7Exception {
ADT_A05 message = (ADT_A05) workingMessage;
ADT_A05 clonedMessage = new ADT_A05();
this.transform(message.getACC(),
this.copySegment(message.getACC(), clonedMessage.getACC()));
this.transform(message.getDRG(),
this.copySegment(message.getDRG(), clonedMessage.getDRG()));
this.transform(message.getEVN(),
this.copySegment(message.getEVN(), clonedMessage.getEVN()));
this.transform(message.getMSH(),
this.copySegment(message.getMSH(), clonedMessage.getMSH()));
this.transform(message.getPD1(),
this.copySegment(message.getPD1(), clonedMessage.getPD1()));
this.transform(message.getPID(),
this.copySegment(message.getPID(), clonedMessage.getPID()));
this.transform(message.getPV1(),
this.copySegment(message.getPV1(), clonedMessage.getPV1()));
this.transform(message.getPV2(),
this.copySegment(message.getPV2(), clonedMessage.getPV2()));
this.transform(message.getUB1(),
this.copySegment(message.getUB1(), clonedMessage.getUB1()));
this.transform(message.getUB2(),
this.copySegment(message.getUB2(), clonedMessage.getUB2()));
this.transformAl1s(HapiUtil.getAll(workingMessage, AL1.class));
this.transformDb1s(HapiUtil.getAll(workingMessage, DB1.class));
this.transformDg1s(HapiUtil.getAll(workingMessage, DG1.class));
this.transformGt1s(HapiUtil.getAll(workingMessage, GT1.class));
this.transformInsurances(HapiUtil.getAll(workingMessage, "INSURANCE",
ADT_A05_INSURANCE.class));
this.transformNk1s(HapiUtil.getAll(workingMessage, NK1.class));
this.transformObxs(HapiUtil.getAll(workingMessage, OBX.class));
this.transformProcedures(HapiUtil.getAll(workingMessage, "PROCEDURE",
ADT_A05_PROCEDURE.class));
this.transformRols(HapiUtil.getAll(workingMessage, ROL.class));
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:40,代码来源:AbstractA05Processor.java
示例5: dispatchProcessFixture
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
@Override
protected void dispatchProcessFixture(AbstractMessage workingMessage)
throws HL7Exception {
ADT_A03 message = (ADT_A03) workingMessage;
ADT_A03 clonedMessage = new ADT_A03();
this.transform(message.getDRG(),
this.copySegment(message.getDRG(), clonedMessage.getDRG()));
this.transform(message.getEVN(),
this.copySegment(message.getEVN(), clonedMessage.getEVN()));
this.transform(message.getMSH(),
this.copySegment(message.getMSH(), clonedMessage.getMSH()));
this.transform(message.getPD1(),
this.copySegment(message.getPD1(), clonedMessage.getPD1()));
this.transform(message.getPDA(),
this.copySegment(message.getPDA(), clonedMessage.getPDA()));
this.transform(message.getPID(),
this.copySegment(message.getPID(), clonedMessage.getPID()));
this.transform(message.getPV1(),
this.copySegment(message.getPV1(), clonedMessage.getPV1()));
this.transform(message.getPV2(),
this.copySegment(message.getPV2(), clonedMessage.getPV2()));
this.transformDb1s(HapiUtil.getAll(workingMessage, DB1.class));
this.transformObxs(HapiUtil.getAll(workingMessage, OBX.class));
this.transformProcedures(HapiUtil.getAll(workingMessage, "PROCEDURE",
ADT_A03_PROCEDURE.class));
this.transformRols(HapiUtil.getAll(workingMessage, ROL.class));
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:29,代码来源:AbstractA03Processor.java
示例6: testObx
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
private void testObx(int ordNo, int obNo) throws HL7Exception {
Structure expectedSegment = getExpected().getGroup("ORDER", ordNo)
.getGroup("OBSERVATION", obNo).get(OBX.class);
Structure actualSegment = getActual().getGroup("ORDER", ordNo)
.getGroup("ORDER_DETAIL", ordNo).getGroup("OBSERVATION", obNo)
.get(OBX.class);
assertEquals(expectedSegment, actualSegment);
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:10,代码来源:AbstractCrisO01Test.java
示例7: makeOCS_COMPSMsg
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
private ImsNasMsg makeOCS_COMPSMsg(OBX obx, int seqNo, String msgSrcId) throws Exception
{
ImsNasMsg nm = new ImsNasMsg();
nm.addPair("*SERVICE","OCS_COMPS");
nm.addPair("ACTION","INSERT");
nm.addPair("RES_COMP_ID","");
nm.addPair("RES_ID","");
nm.addPair("RES_COMP_SEQ",""+seqNo+1);
nm.addPair("RES_CD","");
nm.addPair("RES_EXT_CD",obx.getObservationIdentifier().getIdentifier().getValue());
String resVal = HL7Utils.getValueFromVariant(obx.getObservationValue(0),0);
String valType = obx.getValueType().getValue();
if (valType.equals("CE"))
valType = "NM"; //JME Mar 2006
nm.addPair("RES_VAL_TYPE",valType);
if(valType.equals("FT") || valType.equals("TX"))
{
nm.addPair("RES_VAL","");
nm.addPairs(getTextInfo(resVal,"TXT_SEQNO","RES_TEXT",null,0));
}
else
nm.addPair("RES_VAL",resVal);
nm.addPair("UNIT_OF_MEASURE",obx.getUnits().getText().getValue());
nm.addPair("REF_RANGE",obx.getReferencesRange().getValue());
nm.addPair("ABNORMAL_FLAG",obx.getAbnormalFlags().getValue());
nm.addPair("RES_STAT","F");
TS ts = obx.getDateTimeOfTheObservation();
String dt;
if (ts != null && (dt = ts.getTimeOfAnEvent().getValue()) != null)
{
nm.addPair("DATE_OF_OBS",getDateTime(dt,DATE));
nm.addPair("TIME_OF_OBS",getDateTime(dt,TIME));
}
nm.addPair("RES_EXT_NAME",obx.getObservationIdentifier().getText().getValue());
nm.addPair("RES_NAME",obx.getObservationIdentifier().getText().getValue());
nm.addPair("COMP_MSG_SRC_ID",msgSrcId); //config flags?
return nm;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:45,代码来源:R01NasMapper.java
示例8: getReportTextFromOBXGroup
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
private String getReportTextFromOBXGroup(ORU_R01_ORCOBRNTECTDOBXNTEFT1CTI orc_group) throws HL7Exception
{
int componentCount = orc_group.getORU_R01_OBXNTEReps();
StringBuffer ret = new StringBuffer();
for (int i = 0; i < componentCount; i++)
{
ORU_R01_OBXNTE obx_nte = orc_group.getORU_R01_OBXNTE(i);
OBX obx = obx_nte.getOBX();
// String obValue=HL7Utils.fromHL7Text(HL7Utils.getValueFromVariant(obx.getObservationValue(0), 0)); //WDEV-6358
Varies[] varies = obx.getObservationValue();
String obValue="";
if (null!=varies)
{
for (Varies varies2 : varies)
{
if(!"".equals(obValue)) // Add a new line if it is not the first
{
obValue+="\n"; // Newline: result is always displayed as html
}
String value = HL7Utils.fromHL7Text(HL7Utils.getValueFromVariant(varies2, 0));
if(null!=value)
obValue +=value;
}
}
if(null!=obValue)
ret.append(obValue);
ret.append("\r");
int nteCount = obx_nte.getNTEReps();
for (int j = 0; j < nteCount; j++)
{
NTE nte = obx_nte.getNTE(j);
int commCount = nte.getComment().length;
for (int k = 0; k < commCount; k++)
{
ret.append(HL7Utils.fromHL7Text(nte.getComment(k).getValue()));
ret.append("\r");
}
}
}
String returnString = ret.toString();
//http://jira/browse/WDEV-14838
if(ConfigFlag.HL7.REMOVE_HL7_INDENT_FORMATTING.getValue())
{
if(null!=returnString)
{
returnString = returnString.replaceAll("\\\\\\.in[\\+\\-](\\d)*\\\\", " ");
}
}
return returnString;
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:56,代码来源:R01VoMapper.java
示例9: getNextOBX
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
private OBX getNextOBX(ORM_O01 order,int i) throws HL7Exception
{
return order.getORM_O01_ORCOBRRQDRQ1RXOODSODTNTECTDDG1OBXNTEFT1CTIBLG(0).getORM_O01_OBRRQDRQ1RXOODSODTNTECTDDG1OBXNTE().getORM_O01_OBXNTE(i-1).getOBX();
}
开发者ID:oopcell,项目名称:AvoinApotti,代码行数:5,代码来源:O01VoMapper.java
示例10: transformObxs
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
public void transformObxs(List<OBX> obxs) throws HL7Exception {
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:3,代码来源:AbstractA09Processor.java
示例11: transformObxs
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
public void transformObxs(List<OBX> obxs) throws
HL7Exception {
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:4,代码来源:AbstractA03Processor.java
示例12: test_message_to_message_obx_1
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
@Test
public void test_message_to_message_obx_1() throws Exception {
testStructureByIndex(0, OBX.class);
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:5,代码来源:AbstractA01Test.java
示例13: test_message_to_message_obx_2
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
@Test
public void test_message_to_message_obx_2() throws Exception {
testStructureByIndex(1, OBX.class);
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:6,代码来源:AbstractA01Test.java
示例14: shouldProcessMessage
import ca.uhn.hl7v2.model.v24.segment.OBX; //导入依赖的package包/类
public boolean shouldProcessMessage(@Body AbstractMessage body)
throws HL7Exception {
ORU_R01 r01 = (ORU_R01) body;
boolean resultsStatus = true;
int resultCount = r01.getPATIENT_RESULT().getORDER_OBSERVATIONReps();
for (int i = 0; i < resultCount; i++){
int obxCount = r01.getPATIENT_RESULT().getORDER_OBSERVATION(i).getOBSERVATIONReps();
for (int j = 0; j < obxCount && resultsStatus; j++ ){
OBX obx = r01.getPATIENT_RESULT().getORDER_OBSERVATION(i).getOBSERVATION(j).getOBX();
resultsStatus = this.checkOBX11(obx.getObx11_ObservationResultStatus().getValue());
}
}
return (resultsStatus);
}
开发者ID:KingsCollegeHospital,项目名称:rassyeyanie,代码行数:22,代码来源:EmptyResultsStatusFilter.java
注:本文中的ca.uhn.hl7v2.model.v24.segment.OBX类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论