/** * @return The language this designation is defined for. */ public String getLanguage() { return this.language == null ? null : this.language.getValue(); }
@Override public String getCode() { return asStringValue(); }
@Override public CodeType copy() { CodeType ret = new CodeType(getValue()); copyValues(ret); return ret; }
public org.hl7.fhir.instance.model.SearchParameter convertSearchParameter(org.hl7.fhir.r4.model.SearchParameter src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.SearchParameter tgt = new org.hl7.fhir.instance.model.SearchParameter(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setName(src.getName()); tgt.setStatus(convertConformanceResourceStatus(src.getStatus())); if (src.hasExperimental()) tgt.setExperimental(src.getExperimental()); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setPublisher(src.getPublisher()); for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t)); tgt.setRequirements(src.getPurpose()); tgt.setCode(src.getCode()); for (org.hl7.fhir.r4.model.CodeType t : src.getBase()) tgt.setBase(t.asStringValue()); tgt.setType(convertSearchParamType(src.getType())); tgt.setDescription(src.getDescription()); org.hl7.fhir.instance.utils.ToolingExtensions.setStringExtension(tgt, ToolingExtensions.EXT_EXPRESSION, src.getExpression()); tgt.setXpath(src.getXpath()); tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage())); for (org.hl7.fhir.r4.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue()); return tgt; }
/** * @return {@link #status} (A code specifying the state of the set of dispense events.). This is the underlying object with id, value and extensions. The accessor "getStatus" gives direct access to the value */ public CodeType getStatusElement() { if (this.status == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create MedicationDispense.status"); else if (Configuration.doAutoCreate()) this.status = new CodeType(); // bb return this.status; }
public static org.hl7.fhir.dstu2016may.model.CodeType convertCode(org.hl7.fhir.r4.model.CodeType src) throws FHIRException { org.hl7.fhir.dstu2016may.model.CodeType tgt = new org.hl7.fhir.dstu2016may.model.CodeType(); if (src.hasValue()) tgt.setValue(src.getValue()); copyElement(src, tgt); return tgt; }
public TerminologyCapabilitiesCodeSystemVersionFilterComponent copy() { TerminologyCapabilitiesCodeSystemVersionFilterComponent dst = new TerminologyCapabilitiesCodeSystemVersionFilterComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); if (op != null) { dst.op = new ArrayList<CodeType>(); for (CodeType i : op) dst.op.add(i.copy()); }; return dst; }
public static boolean isDeprecated(CodeSystem cs, ConceptDefinitionComponent def) { try { for (ConceptPropertyComponent p : def.getProperty()) { if (p.getCode().equals("status") && p.hasValue() && p.hasValueCodeType() && p.getValueCodeType().getCode().equals("deprecated")) return true; // this, though status should also be set if (p.getCode().equals("deprecationDate") && p.hasValue() && p.getValue() instanceof DateTimeType) return ((DateTimeType) p.getValue()).before(new DateTimeType(Calendar.getInstance())); // legacy if (p.getCode().equals("deprecated") && p.hasValue() && p.getValue() instanceof BooleanType) return ((BooleanType) p.getValue()).getValue(); } return false; } catch (FHIRException e) { return false; } }
tgt.setCode(src.getCode()); for (org.hl7.fhir.r4.model.CodeType t : src.getBase()) tgt.setBase(t.asStringValue()); tgt.setType(convertSearchParamType(src.getType())); tgt.setDescription(src.getDescription()); tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage())); for (org.hl7.fhir.r4.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue()); return tgt;
@Override public CodeType copy() { CodeType ret = new CodeType(getValue()); copyValues(ret); return ret; }
/** * @return {@link #code} (A code - a text symbol - that uniquely identifies the concept within the code system.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public CodeType getCodeElement() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptDefinitionComponent.code"); else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb return this.code; }
public SourceElementComponent copy() { SourceElementComponent dst = new SourceElementComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.display = display == null ? null : display.copy(); if (target != null) { dst.target = new ArrayList<TargetElementComponent>(); for (TargetElementComponent i : target) dst.target.add(i.copy()); }; return dst; }
public static boolean isDeprecated(CodeSystem cs, ConceptDefinitionComponent def) { try { for (ConceptPropertyComponent p : def.getProperty()) { if (p.getCode().equals("status") && p.hasValue() && p.hasValueCodeType() && p.getValueCodeType().getCode().equals("deprecated")) return true; // this, though status should also be set if (p.getCode().equals("deprecationDate") && p.hasValue() && p.getValue() instanceof DateTimeType) return ((DateTimeType) p.getValue()).before(new DateTimeType(Calendar.getInstance())); // legacy if (p.getCode().equals("deprecated") && p.hasValue() && p.getValue() instanceof BooleanType) return ((BooleanType) p.getValue()).getValue(); } return false; } catch (FHIRException e) { return false; } }
/** * @return The human language of the content. The value can be any valid value according to BCP 47. */ public String getLanguage() { return this.language == null ? null : this.language.getValue(); }
public org.hl7.fhir.instance.model.SearchParameter convertSearchParameter(org.hl7.fhir.r4.model.SearchParameter src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.SearchParameter tgt = new org.hl7.fhir.instance.model.SearchParameter(); copyDomainResource(src, tgt); tgt.setUrl(src.getUrl()); tgt.setName(src.getName()); tgt.setStatus(convertConformanceResourceStatus(src.getStatus())); if (src.hasExperimental()) tgt.setExperimental(src.getExperimental()); if (src.hasDate()) tgt.setDate(src.getDate()); tgt.setPublisher(src.getPublisher()); for (org.hl7.fhir.r4.model.ContactDetail t : src.getContact()) tgt.addContact(convertSearchParameterContactComponent(t)); tgt.setRequirements(src.getPurpose()); tgt.setCode(src.getCode()); for (org.hl7.fhir.r4.model.CodeType t : src.getBase()) tgt.setBase(t.asStringValue()); tgt.setType(convertSearchParamType(src.getType())); tgt.setDescription(src.getDescription()); org.hl7.fhir.instance.utils.ToolingExtensions.setStringExtension(tgt, ToolingExtensions.EXT_EXPRESSION, src.getExpression()); tgt.setXpath(src.getXpath()); tgt.setXpathUsage(convertXPathUsageType(src.getXpathUsage())); for (org.hl7.fhir.r4.model.CodeType t : src.getTarget()) tgt.addTarget(t.getValue()); return tgt; }
/** * @return {@link #code} (A code that is a reference to CodeSystem.property.code.). This is the underlying object with id, value and extensions. The accessor "getCode" gives direct access to the value */ public CodeType getCodeElement() { if (this.code == null) if (Configuration.errorOnAutoCreate()) throw new Error("Attempt to auto-create ConceptPropertyComponent.code"); else if (Configuration.doAutoCreate()) this.code = new CodeType(); // bb return this.code; }
public ConceptReferenceComponent copy() { ConceptReferenceComponent dst = new ConceptReferenceComponent(); copyValues(dst); dst.code = code == null ? null : code.copy(); dst.display = display == null ? null : display.copy(); if (designation != null) { dst.designation = new ArrayList<ConceptReferenceDesignationComponent>(); for (ConceptReferenceDesignationComponent i : designation) dst.designation.add(i.copy()); }; return dst; }
@Override public boolean hasCode() { return !Utilities.noString(asStringValue()); }