/** * @return The first repetition of repeating field {@link #target}, creating it if it does not already exist */ public TargetElementComponent getTargetFirstRep() { if (getTarget().isEmpty()) { addTarget(); } return getTarget().get(0); }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); } else if (name.equals("display")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); } else if (name.equals("target")) { return addTarget(); } else return super.addChild(name); }
public List<SourceElementComponentWrapper> convertSourceElementComponent(org.hl7.fhir.instance.model.ConceptMap.SourceElementComponent src) throws FHIRException { List<SourceElementComponentWrapper> res = new ArrayList<SourceElementComponentWrapper>(); if (src == null || src.isEmpty()) return res; for (org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); copyElement(src, tgt); tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); res.add(new SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem())); } return res; }
.addTarget() .setCode(theMapping.getTargetCode()) .setDisplay(theMapping.getTargetDisplay())
if (e.getCode().startsWith("\"")) e.setCode(lexer.processConstant(e.getCode())); TargetElementComponent tgt = e.addTarget(); if (eq != ConceptMapEquivalence.EQUIVALENT) tgt.setEquivalence(eq);
element.addTarget().setCode(mapping.getTargetValue());
element.addTarget().setCode(mapping.getTargetValue());
public static List<SourceElementComponentWrapper> convertSourceElementComponent(org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent src) throws FHIRException { List<SourceElementComponentWrapper> res = new ArrayList<SourceElementComponentWrapper>(); if (src == null || src.isEmpty()) return res; for (org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); copyElement(src, tgt); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); res.add(new SourceElementComponentWrapper(tgt, src.getSystem(), t.getSystem())); } return res; }
public List<SourceElementComponentWrapper> convertSourceElementComponent(org.hl7.fhir.instance.model.ConceptMap.SourceElementComponent src) throws FHIRException { List<SourceElementComponentWrapper> res = new ArrayList<SourceElementComponentWrapper>(); if (src == null || src.isEmpty()) return res; for (org.hl7.fhir.instance.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); copyElement(src, tgt); tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); res.add(new SourceElementComponentWrapper(tgt, src.getCodeSystem(), t.getCodeSystem())); } return res; }
@Override public Base addChild(String name) throws FHIRException { if (name.equals("code")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.code"); } else if (name.equals("display")) { throw new FHIRException("Cannot call addChild on a primitive type ConceptMap.display"); } else if (name.equals("target")) { return addTarget(); } else return super.addChild(name); }
/** * @return The first repetition of repeating field {@link #target}, creating it if it does not already exist */ public TargetElementComponent getTargetFirstRep() { if (getTarget().isEmpty()) { addTarget(); } return getTarget().get(0); }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case 1671764162: return getDisplayElement(); case -880905839: return addTarget(); default: return super.makeProperty(hash, name); } }
sourceElementComponent.addTarget(targetElementComponent); hasTargets = true;
.addTarget() .setCode(theMapping.getTargetCode()) .setDisplay(theMapping.getTargetDisplay())
if (e.getCode().startsWith("\"")) e.setCode(lexer.processConstant(e.getCode())); TargetElementComponent tgt = e.addTarget(); if (eq != ConceptMapEquivalence.EQUIVALENT) tgt.setEquivalence(eq);
public static List<SourceElementComponentWrapper> convertSourceElementComponent(org.hl7.fhir.dstu2016may.model.ConceptMap.SourceElementComponent src) throws FHIRException { List<SourceElementComponentWrapper> res = new ArrayList<SourceElementComponentWrapper>(); if (src == null || src.isEmpty()) return res; for (org.hl7.fhir.dstu2016may.model.ConceptMap.TargetElementComponent t : src.getTarget()) { org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent tgt = new org.hl7.fhir.r4.model.ConceptMap.SourceElementComponent(); copyElement(src, tgt); if (src.hasCode()) tgt.setCode(src.getCode()); tgt.addTarget(convertTargetElementComponent(t)); res.add(new SourceElementComponentWrapper(tgt, src.getSystem(), t.getSystem())); } return res; }
@Override public Base makeProperty(int hash, String name) throws FHIRException { switch (hash) { case 3059181: return getCodeElement(); case 1671764162: return getDisplayElement(); case -880905839: return addTarget(); default: return super.makeProperty(hash, name); } }