public static String render(StructureMap map) { StringBuilder b = new StringBuilder(); b.append("map \""); b.append(map.getUrl()); b.append("\" = \""); b.append(Utilities.escapeJson(map.getName())); b.append("\"\r\n\r\n"); renderConceptMaps(b, map); renderUses(b, map); renderImports(b, map); for (StructureMapGroupComponent g : map.getGroup()) renderGroup(b, g); return b.toString(); }
this.getImport().add(castToCanonical(value)); } else if (name.equals("group")) { this.getGroup().add((StructureMapGroupComponent) value); } else return super.setProperty(name, value);
public void transform(Object appInfo, Base source, StructureMap map, Base target) throws FHIRException { TransformContext context = new TransformContext(appInfo); log("Start Transform "+map.getUrl()); StructureMapGroupComponent g = map.getGroup().get(0); Variables vars = new Variables(); vars.add(VariableMode.INPUT, getInputName(g, StructureMapInputMode.SOURCE, "source"), source); if (target != null) vars.add(VariableMode.OUTPUT, getInputName(g, StructureMapInputMode.TARGET, "target"), target); executeGroup("", context, map, vars, g, true); if (target instanceof Element) ((Element) target).sort(); }
res.targetMap = null; res.target = null; for (StructureMapGroupComponent grp : map.getGroup()) { if (grp.getName().equals(name)) { if (res.targetMap == null) { for (StructureMap impMap : impMapList) { if (!impMap.getUrl().equals(map.getUrl())) { for (StructureMapGroupComponent grp : impMap.getGroup()) { if (grp.getName().equals(name)) { if (res.targetMap == null) {
res.targetMap = null; res.target = null; for (StructureMapGroupComponent grp : map.getGroup()) { if (matchesByType(map, grp, srcType, tgtType)) { if (res.targetMap == null) { for (StructureMap impMap : impMapList) { if (!impMap.getUrl().equals(map.getUrl())) { for (StructureMapGroupComponent grp : impMap.getGroup()) { if (matchesByType(impMap, grp, srcType, tgtType)) { if (res.targetMap == null) {
return value; case 98629247: // group this.getGroup().add((StructureMapGroupComponent) value); // StructureMapGroupComponent return value; default: return super.setProperty(hash, name, value);
res.targetMap = null; res.target = null; for (StructureMapGroupComponent grp : map.getGroup()) { if (matchesByType(map, grp, type)) { if (res.targetMap == null) { for (StructureMap impMap : impMapList) { if (!impMap.getUrl().equals(map.getUrl())) { for (StructureMapGroupComponent grp : impMap.getGroup()) { if (matchesByType(impMap, grp, type)) { if (res.targetMap == null) {
public static String render(StructureMap map) { StringBuilder b = new StringBuilder(); b.append("map \""); b.append(map.getUrl()); b.append("\" = \""); b.append(Utilities.escapeJson(map.getName())); b.append("\"\r\n\r\n"); renderConceptMaps(b, map); renderUses(b, map); renderImports(b, map); for (StructureMapGroupComponent g : map.getGroup()) renderGroup(b, g); return b.toString(); }
this.getImport().add(castToCanonical(value)); } else if (name.equals("group")) { this.getGroup().add((StructureMapGroupComponent) value); } else return super.setProperty(name, value);
public void transform(Object appInfo, Base source, StructureMap map, Base target) throws FHIRException { TransformContext context = new TransformContext(appInfo); log("Start Transform "+map.getUrl()); StructureMapGroupComponent g = map.getGroup().get(0); Variables vars = new Variables(); vars.add(VariableMode.INPUT, getInputName(g, StructureMapInputMode.SOURCE, "source"), source); if (target != null) vars.add(VariableMode.OUTPUT, getInputName(g, StructureMapInputMode.TARGET, "target"), target); executeGroup("", context, map, vars, g, true); if (target instanceof Element) ((Element) target).sort(); }
for (org.hl7.fhir.r4.model.UriType t : src.getImport()) tgt.addImport(t.getValue()); for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent t : src.getGroup()) tgt.addGroup(convertStructureMapGroupComponent(t)); return tgt;
res.targetMap = null; res.target = null; for (StructureMapGroupComponent grp : map.getGroup()) { if (grp.getName().equals(name)) { if (res.targetMap == null) { for (StructureMap impMap : impMapList) { if (!impMap.getUrl().equals(map.getUrl())) { for (StructureMapGroupComponent grp : impMap.getGroup()) { if (grp.getName().equals(name)) { if (res.targetMap == null) {
res.targetMap = null; res.target = null; for (StructureMapGroupComponent grp : map.getGroup()) { if (matchesByType(map, grp, srcType, tgtType)) { if (res.targetMap == null) { for (StructureMap impMap : impMapList) { if (!impMap.getUrl().equals(map.getUrl())) { for (StructureMapGroupComponent grp : impMap.getGroup()) { if (matchesByType(impMap, grp, srcType, tgtType)) { if (res.targetMap == null) {
return value; case 98629247: // group this.getGroup().add((StructureMapGroupComponent) value); // StructureMapGroupComponent return value; default: return super.setProperty(hash, name, value);
res.targetMap = null; res.target = null; for (StructureMapGroupComponent grp : map.getGroup()) { if (matchesByType(map, grp, type)) { if (res.targetMap == null) { for (StructureMap impMap : impMapList) { if (!impMap.getUrl().equals(map.getUrl())) { for (StructureMapGroupComponent grp : impMap.getGroup()) { if (matchesByType(impMap, grp, type)) { if (res.targetMap == null) {
for (org.hl7.fhir.r4.model.UriType t : src.getImport()) tgt.addImport(t.getValue()); for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupComponent t : src.getGroup()) tgt.addGroup(convertStructureMapGroupComponent(t)); return tgt;