org.hl7.fhir.dstu3.model.Identifier.setUse()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(5.6k)|赞(0)|评价(0)|浏览(95)

本文整理了Java中org.hl7.fhir.dstu3.model.Identifier.setUse()方法的一些代码示例,展示了Identifier.setUse()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Identifier.setUse()方法的具体详情如下:
包路径:org.hl7.fhir.dstu3.model.Identifier
类名称:Identifier
方法名:setUse

Identifier.setUse介绍

暂无

代码示例

代码示例来源:origin: jamesagnew/hapi-fhir

public org.hl7.fhir.dstu3.model.Identifier convertIdentifier(org.hl7.fhir.instance.model.Identifier src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Identifier tgt = new org.hl7.fhir.dstu3.model.Identifier();
 copyElement(src, tgt);
 tgt.setUse(convertIdentifierUse(src.getUse()));
 tgt.setType(convertCodeableConcept(src.getType()));
 tgt.setSystem(src.getSystem());
 tgt.setValue(src.getValue());
 tgt.setPeriod(convertPeriod(src.getPeriod()));
 tgt.setAssigner(convertReference(src.getAssigner()));
 return tgt;
}

代码示例来源:origin: jamesagnew/hapi-fhir

public void clientRead() {
//START SNIPPET: clientReadTags
IPatientClient client = FhirContext.forDstu2().newRestfulClient(IPatientClient.class, "http://foo/fhir");
Patient patient = client.readPatient(new IdType("1234"));
 
// Access the tag list
List<Coding> tagList = patient.getMeta().getTag();
for (Coding next : tagList) {
 // ..process the tags somehow..
}
//END SNIPPET: clientReadTags

//START SNIPPET: clientCreateTags
Patient newPatient = new Patient();

// Populate the resource object
newPatient.addIdentifier().setUse(IdentifierUse.OFFICIAL).setValue("123");
newPatient.addName().setFamily("Jones").addGiven("Frank");

// Populate some tags
newPatient.getMeta().addTag("http://animals", "Dog", "Canine Patient"); // TODO: more realistic example
newPatient.getMeta().addTag("http://personality", "Friendly", "Friendly"); // TODO: more realistic example

// ...invoke the create method on the client...
//END SNIPPET: clientCreateTags
}

代码示例来源:origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu3.model.Identifier convertIdentifier(org.hl7.fhir.dstu2016may.model.Identifier src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Identifier tgt = new org.hl7.fhir.dstu3.model.Identifier();
 copyElement(src, tgt);
 tgt.setUse(convertIdentifierUse(src.getUse()));
 tgt.setType(convertCodeableConcept(src.getType()));
 if (src.hasSystem())
  tgt.setSystem(src.getSystem());
 if (src.hasValue())
  tgt.setValue(src.getValue());
 tgt.setPeriod(convertPeriod(src.getPeriod()));
 tgt.setAssigner(convertReference(src.getAssigner()));
 return tgt;
}

代码示例来源:origin: jamesagnew/hapi-fhir

patient.addIdentifier().setUse(IdentifierUse.OFFICIAL).setSystem("urn:example").setValue("7000135");

代码示例来源:origin: jgperrin/net.jgp.labs.spark

@Override
 public void call(Row r) throws Exception {
  // Build the claim
  // ---------------
  // CLIENT_ID ....... 0
  // CLIENT_SUB_ID ... 1
  // CLAIM_SK ........ 2
  // CLAIM_NBR ....... 3
  // CLAIM_ADJ_CD,ADJ_FROM_CLAIM_SK,ADJ_FROM_CLAIM_NBR,ADJ_FROM_CLAIM_ADJ_NBR,CLAIM_STS_CD_SK,CLAIM_STS_CD,SYS_SUBSC_SK,SYS_SUBSC_ID,SYS_MBR_SK,SYS_MBR_ID,CLIENT_HIERARCHY_LVL1,CLIENT_HIERARCHY_LVL2,CLIENT_HIERARCHY_LVL3,CLIENT_HIERARCHY_LVL4,MBR_PCP_SK,MBR_PCP_NBR,PROV_SK,PROV_ID,PROV_TP_CD_SK,PROV_TP_CD,PAYEE_SK,PAYEE_ID,PAYEE_TIN,APPROVE_DAY_AMT,ACTUAL_DAY_AMT,CLAIM_BEG_SVC_DT,RECEIVE_DT,PAY_DT,DRG_CD_SK,DRG_CD,SUBMIT_DRG_CD_SK,SUBMIT_DRG_CD,BILL_CLASS_CD,FACILITY_TP_CD,HOSP_FREQ_CD,ADMIT_SRC_CD_SK,ADMIT_SRC_CD,ADMIT_TP_CD_SK,ADMIT_TP_CD,HOSP_ADMIT_DT,HOSP_ADMIT_HR,HOSP_DISCHARGE_DT,HOSP_DISCHARGE_HR,HOSP_DISCHARGE_STS_CD_SK,HOSP_DISCHARGE_STS_CD,ATTENDING_PROV_SK,ATTENDING_PROV_ID,PROV_ADDR_CD_SK,PROV_ADDR_CD,OOA_IND,EDI_REF_ID,CURRENT_IND,SENSTV_DRG_IND,CLIENT_SPECIFIC_TXT1,CLIENT_SPECIFIC_TXT2,CLIENT_SPECIFIC_TXT3,CLIENT_SPECIFIC_TXT4,CLIENT_SPECIFIC_TXT5,CLIENT_SPECIFIC_TXT6,CLIENT_SPECIFIC_TXT7,CLIENT_SPECIFIC_TXT8,CLIENT_SPECIFIC_TXT9,CLIENT_SPECIFIC_TXT10,REC_LOAD_DTTM,REC_LAST_UPD_DTTM,REC_DEL_IND,DRG_CODE_TP_CD,SUBMIT_DRG_CODE_TP_CD,QA_CURRENT_IND
  CodeableConcept cc = new CodeableConcept();
  cc.setUserData("value", r.getString(3)); // TODO check that this is how
                       // this valued is set here
  Identifier i = new Identifier();
  i.setUse(IdentifierUse.OFFICIAL);
  i.setType(cc);
  i.setSystem("Payer Specific	 Claim Number");
  i.setValue(r.getAs("CLAIM_NBR"));
  // TODO i.setAssigner(value);
  List<Identifier> identifiers = new ArrayList<>();
  identifiers.add(i);
  Claim c = new Claim();
  c.setIdentifier(identifiers);
  // Process/send the claim
  // ----------------------
  // TODO
 }
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public org.hl7.fhir.dstu3.model.Identifier convertIdentifier(org.hl7.fhir.instance.model.Identifier src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Identifier tgt = new org.hl7.fhir.dstu3.model.Identifier();
 copyElement(src, tgt);
 tgt.setUse(convertIdentifierUse(src.getUse()));
 tgt.setType(convertCodeableConcept(src.getType()));
 tgt.setSystem(src.getSystem());
 tgt.setValue(src.getValue());
 tgt.setPeriod(convertPeriod(src.getPeriod()));
 tgt.setAssigner(convertReference(src.getAssigner()));
 return tgt;
}

代码示例来源:origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public static org.hl7.fhir.dstu3.model.Identifier convertIdentifier(org.hl7.fhir.dstu2016may.model.Identifier src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu3.model.Identifier tgt = new org.hl7.fhir.dstu3.model.Identifier();
 copyElement(src, tgt);
 tgt.setUse(convertIdentifierUse(src.getUse()));
 tgt.setType(convertCodeableConcept(src.getType()));
 if (src.hasSystem())
  tgt.setSystem(src.getSystem());
 if (src.hasValue())
  tgt.setValue(src.getValue());
 tgt.setPeriod(convertPeriod(src.getPeriod()));
 tgt.setAssigner(convertReference(src.getAssigner()));
 return tgt;
}

相关文章