Java Code Examples for org.hl7.fhir.r4.model.CodeableConcept#getCoding()
The following examples show how to use
org.hl7.fhir.r4.model.CodeableConcept#getCoding() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: TerminologyCache.java From org.hl7.fhir.core with Apache License 2.0 | 6 votes |
public CacheToken generateValidationToken(ValidationOptions options, CodeableConcept code, ValueSet vs) { CacheToken ct = new CacheToken(); for (Coding c : code.getCoding()) { if (c.hasSystem()) ct.setName(getNameForSystem(c.getSystem())); } JsonParser json = new JsonParser(); json.setOutputStyle(OutputStyle.PRETTY); ValueSet vsc = getVSEssense(vs); try { ct.request = "{\"code\" : "+json.composeString(code, "codeableConcept")+", \"valueSet\" :"+json.composeString(vsc)+(options == null ? "" : ", "+options.toJson())+"}"; } catch (IOException e) { throw new Error(e); } ct.key = String.valueOf(hashNWS(ct.request)); return ct; }
Example 2
Source File: TerminologyCache.java From org.hl7.fhir.core with Apache License 2.0 | 5 votes |
public String summary(CodeableConcept code) { StringBuilder b = new StringBuilder(); b.append("{"); boolean first = true; for (Coding c : code.getCoding()) { if (first) first = false; else b.append(","); b.append(summary(c)); } b.append("}: \""); b.append(code.getText()); b.append("\""); return b.toString(); }
Example 3
Source File: RdfParserBase.java From org.hl7.fhir.core with Apache License 2.0 | 4 votes |
protected void decorateCodeableConcept(Complex t, CodeableConcept element) { for (Coding c : element.getCoding()) decorateCoding(t, c); }