當前位置: 首頁>>代碼示例>>Java>>正文


Java ConditionVerificationStatusEnum類代碼示例

本文整理匯總了Java中ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum的典型用法代碼示例。如果您正苦於以下問題:Java ConditionVerificationStatusEnum類的具體用法?Java ConditionVerificationStatusEnum怎麽用?Java ConditionVerificationStatusEnum使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


ConditionVerificationStatusEnum類屬於ca.uhn.fhir.model.dstu2.valueset包,在下文中一共展示了ConditionVerificationStatusEnum類的4個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: createSnomedConditions

import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; //導入依賴的package包/類
private List<Condition> createSnomedConditions(int number, Patient patient) {

        List<Condition> conditions = new ArrayList<>();
        for (int i = 0; i < number; i++) {

            String code = null;
            switch (random.nextInt(3)) {
                case 0:
                    code = "195967001"; //Asthma (disorder)
                    break;
                case 1:
                    code = "73211009"; //Diabetes mellitus (disorder)
                    break;
                case 2:
                    code = "8098009"; //Sexually transmitted infectious disease (disorder)
                    break;
            }

            conditions.add((Condition) new Condition()
                .setCode(new CodeableConceptDt("http://snomed.info/sct", code))
                .setClinicalStatus(ConditionClinicalStatusCodesEnum.ACTIVE)
                .setVerificationStatus(ConditionVerificationStatusEnum.CONFIRMED)
                .setPatient(new ResourceReferenceDt(patient))
                .setId("Condition/"+(i+1)));
        }

        return conditions;
    }
 
開發者ID:Salaboy,項目名稱:drools-workshop,代碼行數:29,代碼來源:QueryRulesJUnitTest.java

示例2: createAsthmaCondition

import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; //導入依賴的package包/類
private Condition createAsthmaCondition(Patient patient, String id, Severity severity ){
    return (Condition) new Condition()
        .setCode(new CodeableConceptDt("http://snomed.info/sct", "195967001"))
        .setClinicalStatus(ConditionClinicalStatusCodesEnum.ACTIVE)
        .setVerificationStatus(ConditionVerificationStatusEnum.CONFIRMED)
        .setSeverity(new CodeableConceptDt("http://snomed.info/sct", severity.code))
        .setPatient(new ResourceReferenceDt(patient))
        .setId(id);
}
 
開發者ID:Salaboy,項目名稱:drools-workshop,代碼行數:10,代碼來源:SimpleInferenceRulesJUnitTest.java

示例3: createAsthmaCondition

import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; //導入依賴的package包/類
private Condition createAsthmaCondition(Patient patient, String id) {
    return (Condition) new Condition()
        .setCode(new CodeableConceptDt("http://snomed.info/sct", "195967001")) //Asthma (disorder)
        .setClinicalStatus(ConditionClinicalStatusCodesEnum.ACTIVE)
        .setVerificationStatus(ConditionVerificationStatusEnum.CONFIRMED)
        .setPatient(new ResourceReferenceDt(patient))
        .setId(id);
}
 
開發者ID:Salaboy,項目名稱:drools-workshop,代碼行數:9,代碼來源:UsingGlobalsRulesJUnitTest.java

示例4: createDiabetesCondition

import ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum; //導入依賴的package包/類
private Condition createDiabetesCondition(Patient patient, String id) {
    return (Condition) new Condition()
        .setCode(new CodeableConceptDt("http://snomed.info/sct", "73211009")) //Diabetes mellitus (disorder)
        .setClinicalStatus(ConditionClinicalStatusCodesEnum.ACTIVE)
        .setVerificationStatus(ConditionVerificationStatusEnum.CONFIRMED)
        .setPatient(new ResourceReferenceDt(patient))
        .setId(id);
}
 
開發者ID:Salaboy,項目名稱:drools-workshop,代碼行數:9,代碼來源:UsingGlobalsRulesJUnitTest.java


注:本文中的ca.uhn.fhir.model.dstu2.valueset.ConditionVerificationStatusEnum類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。