本文整理汇总了Java中org.openhealthtools.mdht.uml.cda.consol.ContinuityOfCareDocument类的典型用法代码示例。如果您正苦于以下问题:Java ContinuityOfCareDocument类的具体用法?Java ContinuityOfCareDocument怎么用?Java ContinuityOfCareDocument使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ContinuityOfCareDocument类属于org.openhealthtools.mdht.uml.cda.consol包,在下文中一共展示了ContinuityOfCareDocument类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: init
import org.openhealthtools.mdht.uml.cda.consol.ContinuityOfCareDocument; //导入依赖的package包/类
@BeforeClass
public static void init() {
CDAUtil.loadPackages();
// read the input test file
try {
fisCCD = new FileInputStream("src/test/resources/C-CDA_R2-1_CCD.xml");
ccd = (ContinuityOfCareDocument) CDAUtil.load(fisCCD);
} catch (Exception ex) {
ex.printStackTrace();
}
// init the output file writer
File resultFile = new File(resultFilePath);
resultFile.getParentFile().mkdirs();
try {
resultFW = new FileWriter(resultFile);
} catch (IOException e) {
e.printStackTrace();
}
}
示例2: testClinicalDocument2Composition
import org.openhealthtools.mdht.uml.cda.consol.ContinuityOfCareDocument; //导入依赖的package包/类
@Test
public void testClinicalDocument2Composition() {
ResourceTransformerTest test = new ResourceTransformerTest();
appendToResultFile("## TEST: ClinicalDocument2Composition\n");
// null instance test
org.openhealthtools.mdht.uml.cda.consol.ContinuityOfCareDocument cdaNull = null;
Bundle fhirNull = rt.tClinicalDocument2Composition(cdaNull);
Assert.assertNull(fhirNull);
// instance from file
if(test.ccd != null && !test.ccd.isSetNullFlavor()) {
appendToResultFile(transformationStartMsg);
Bundle fhirComp = rt.tClinicalDocument2Composition(test.ccd);
appendToResultFile(transformationEndMsg);
appendToResultFile(fhirComp);
}
appendToResultFile(endOfTestMsg);
}
示例3: determineCcdaDocumentType
import org.openhealthtools.mdht.uml.cda.consol.ContinuityOfCareDocument; //导入依赖的package包/类
private String determineCcdaDocumentType(ClinicalDocument clinicalDocument) {
UsrhSubType usrhSubType = null;
String docType = null;
if(clinicalDocument != null) {
if (clinicalDocument instanceof ConsultationNote || clinicalDocument instanceof ConsultationNote2) {
usrhSubType = UsrhSubType.CONSULTATION_NOTE;
} else if (clinicalDocument instanceof ContinuityOfCareDocument || clinicalDocument instanceof ContinuityOfCareDocument2) {
usrhSubType = UsrhSubType.CONTINUITY_OF_CARE_DOCUMENT;
} else if (clinicalDocument instanceof DiagnosticImagingReport || clinicalDocument instanceof DiagnosticImagingReport2) {
usrhSubType = UsrhSubType.DIAGNOSTIC_IMAGING_REPORT;
} else if (clinicalDocument instanceof DischargeSummary || clinicalDocument instanceof DischargeSummary2) {
usrhSubType = UsrhSubType.DISCHARGE_SUMMARY;
} else if (clinicalDocument instanceof HistoryAndPhysicalNote || clinicalDocument instanceof HistoryAndPhysicalNote2) {
usrhSubType = UsrhSubType.HISTORY_AND_PHYSICAL_NOTE;
} else if (clinicalDocument instanceof OperativeNote || clinicalDocument instanceof OperativeNote2) {
usrhSubType = UsrhSubType.OPERATIVE_NOTE;
} else if (clinicalDocument instanceof ProcedureNote || clinicalDocument instanceof ProcedureNote2) {
usrhSubType = UsrhSubType.PROCEDURE_NOTE;
} else if (clinicalDocument instanceof ProgressNote || clinicalDocument instanceof ProgressNote2) {
usrhSubType = UsrhSubType.PROGRESS_NOTE;
} else if (clinicalDocument instanceof UnstructuredDocument || clinicalDocument instanceof UnstructuredDocument2) {
usrhSubType = UsrhSubType.UNSTRUCTURED_DOCUMENT;
} else if (clinicalDocument instanceof CarePlan) {
usrhSubType = UsrhSubType.CARE_PLAN;
} else if (clinicalDocument instanceof ReferralNote) {
usrhSubType = UsrhSubType.REFERRAL_NOTE;
} else if (clinicalDocument instanceof TransferSummary) {
usrhSubType = UsrhSubType.TRANSFER_SUMMARY;
} else if (clinicalDocument instanceof USRealmHeaderPatientGeneratedDocument) {
usrhSubType = UsrhSubType.US_REALM_HEADER_PATIENT_GENERATED_DOCUMENT;
}
} else {
if(isValidationObjectiveDS4PType) {
docType = CCDATypes.DS4P;
} else {
docType = CCDATypes.UNKNOWN_DOC_TYPE;
}
}
if(usrhSubType != null) {
docType = usrhSubType.getName();
} else {
if(docType == null) {
docType = CCDATypes.UNKNOWN_DOC_TYPE;
}
}
return docType;
}