本文整理匯總了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;
}
示例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);
}
示例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);
}
示例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);
}