public org.hl7.fhir.instance.model.Encounter.EncounterClass convertEncounterClass(org.hl7.fhir.dstu3.model.Coding src) throws FHIRException { if (src == null || src.isEmpty()) return null; if (src.getSystem().equals("http://hl7.org/fhir/v3/ActCode")) { if (src.getCode().equals("IMP")) return org.hl7.fhir.instance.model.Encounter.EncounterClass.INPATIENT; if (src.getCode().equals("AMB")) return org.hl7.fhir.instance.model.Encounter.EncounterClass.AMBULATORY; if (src.getCode().equals("EMER")) return org.hl7.fhir.instance.model.Encounter.EncounterClass.EMERGENCY; if (src.getCode().equals("HH")) return org.hl7.fhir.instance.model.Encounter.EncounterClass.HOME; if (src.getCode().equals("FLD")) return org.hl7.fhir.instance.model.Encounter.EncounterClass.FIELD; if (src.getCode().equals("")) return org.hl7.fhir.instance.model.Encounter.EncounterClass.DAYTIME; if (src.getCode().equals("VR")) return org.hl7.fhir.instance.model.Encounter.EncounterClass.VIRTUAL; } return org.hl7.fhir.instance.model.Encounter.EncounterClass.NULL; }
private void extractTokensFromCoding(List<String> theSystems, List<String> theCodes, ResourceTable theEntity, Set<BaseResourceIndexedSearchParam> theListToPopulate, RuntimeSearchParam theParameterDef, Coding nextCoding) { if (nextCoding != null && !nextCoding.isEmpty()) { String nextSystem = nextCoding.getSystemElement().getValueAsString(); String nextCode = nextCoding.getCodeElement().getValue(); if (isNotBlank(nextSystem) || isNotBlank(nextCode)) { theSystems.add(nextSystem); theCodes.add(nextCode); } if (!nextCoding.getDisplayElement().isEmpty()) { addStringParam(theEntity, theListToPopulate, theParameterDef, nextCoding.getDisplayElement().getValue()); } } }
public boolean hasSecurityLabel() { if (this.securityLabel == null) return false; for (Coding item : this.securityLabel) if (!item.isEmpty()) return true; return false; }
public boolean hasReason() { if (this.reason == null) return false; for (Coding item : this.reason) if (!item.isEmpty()) return true; return false; }
public boolean hasSecurity() { if (this.security == null) return false; for (Coding item : this.security) if (!item.isEmpty()) return true; return false; }
public boolean hasSecurityLabel() { if (this.securityLabel == null) return false; for (Coding item : this.securityLabel) if (!item.isEmpty()) return true; return false; }
public boolean hasClass_() { if (this.class_ == null) return false; for (Coding item : this.class_) if (!item.isEmpty()) return true; return false; }
public boolean hasSecurityLabel() { if (this.securityLabel == null) return false; for (Coding item : this.securityLabel) if (!item.isEmpty()) return true; return false; }
public boolean hasPurpose() { if (this.purpose == null) return false; for (Coding item : this.purpose) if (!item.isEmpty()) return true; return false; }
public boolean hasSubtype() { if (this.subtype == null) return false; for (Coding item : this.subtype) if (!item.isEmpty()) return true; return false; }
public boolean hasCoding() { if (this.coding == null) return false; for (Coding item : this.coding) if (!item.isEmpty()) return true; return false; }
public boolean hasType() { if (this.type == null) return false; for (Coding item : this.type) if (!item.isEmpty()) return true; return false; }
public boolean hasCode() { if (this.code == null) return false; for (Coding item : this.code) if (!item.isEmpty()) return true; return false; }
public boolean hasTag() { if (this.tag == null) return false; for (Coding item : this.tag) if (!item.isEmpty()) return true; return false; }
public boolean hasCode() { if (this.code == null) return false; for (Coding item : this.code) if (!item.isEmpty()) return true; return false; }
public boolean hasSecurityLabel() { if (this.securityLabel == null) return false; for (Coding item : this.securityLabel) if (!item.isEmpty()) return true; return false; }
/** * @param value {@link #class_} (inpatient | outpatient | ambulatory | emergency +.) */ public Encounter setClass_(Coding value) {
public org.hl7.fhir.instance.model.Coding convertCoding(org.hl7.fhir.dstu3.model.Coding src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.instance.model.Coding tgt = new org.hl7.fhir.instance.model.Coding(); copyElement(src, tgt); tgt.setSystem(src.getSystem()); tgt.setVersion(src.getVersion()); tgt.setCode(src.getCode()); tgt.setDisplay(src.getDisplay()); tgt.setUserSelected(src.getUserSelected()); return tgt; }
boolean haveCoding = theCoding != null && theCoding.isEmpty() == false; boolean haveCode = theCode != null && theCode.isEmpty() == false;
public static org.hl7.fhir.dstu2016may.model.Coding convertCoding(org.hl7.fhir.dstu3.model.Coding src) throws FHIRException { if (src == null || src.isEmpty()) return null; org.hl7.fhir.dstu2016may.model.Coding tgt = new org.hl7.fhir.dstu2016may.model.Coding(); copyElement(src, tgt); if (src.hasSystem()) tgt.setSystem(src.getSystem()); if (src.hasVersion()) tgt.setVersion(src.getVersion()); if (src.hasCode()) tgt.setCode(src.getCode()); if (src.hasDisplay()) tgt.setDisplay(src.getDisplay()); if (src.hasUserSelected()) tgt.setUserSelected(src.getUserSelected()); return tgt; }