Tabnine Logo
StructureMap$StructureMapGroupRuleTargetComponent.getContext
Code IndexAdd Tabnine to your IDE (free)

How to use
getContext
method
in
org.hl7.fhir.r4.model.StructureMap$StructureMapGroupRuleTargetComponent

Best Java code snippets using org.hl7.fhir.r4.model.StructureMap$StructureMapGroupRuleTargetComponent.getContext (Showing top 6 results out of 315)

origin: jamesagnew/hapi-fhir

if (rt.getContextType() == StructureMapContextType.TYPE)
 b.append("@");
b.append(rt.getContext());
if (rt.hasElement())  {
  b.append('.');
origin: jamesagnew/hapi-fhir

private void processTarget(String ruleId, TransformContext context, Variables vars, StructureMap map, StructureMapGroupComponent group, StructureMapGroupRuleTargetComponent tgt, String srcVar, boolean atRoot) throws FHIRException {
  Base dest = null;
  if (tgt.hasContext()) {
    dest = vars.get(VariableMode.OUTPUT, tgt.getContext());
   if (dest == null)
     throw new FHIRException("Rule \""+ruleId+"\": target context not known: "+tgt.getContext());
   if (!tgt.hasElement())
     throw new FHIRException("Rule \""+ruleId+"\": Not supported yet");
  }
   Base v = null;
   if (tgt.hasTransform()) {
     v = runTransform(ruleId, context, map, group, tgt, vars, dest, tgt.getElement(), srcVar, atRoot);
     if (v != null && dest != null)
       v = dest.setProperty(tgt.getElement().hashCode(), tgt.getElement(), v); // reset v because some implementations may have to rewrite v when setting the value
   } else if (dest != null) 
     v = dest.makeProperty(tgt.getElement().hashCode(), tgt.getElement());
   if (tgt.hasVariable() && v != null)
     vars.add(VariableMode.OUTPUT, tgt.getVariable(), v);
 }
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-r4

if (rt.getContextType() == StructureMapContextType.TYPE)
 b.append("@");
b.append(rt.getContext());
if (rt.hasElement())  {
  b.append('.');
origin: ca.uhn.hapi.fhir/hapi-fhir-converter

public static org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent();
 copyElement(src, tgt);
 if (src.hasContext())
  tgt.setContext(src.getContext());
 if (src.hasContextType())
  tgt.setContextType(convertStructureMapContextType(src.getContextType()));
 if (src.hasElement())
  tgt.setElement(src.getElement());
 if (src.hasVariable())
  tgt.setVariable(src.getVariable());
 for (Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapTargetListMode> t : src.getListMode())
  tgt.addListMode(convertStructureMapTargetListMode(t.getValue()));
 if (src.hasListRuleId())
  tgt.setListRuleId(src.getListRuleId());
 if (src.hasTransform())
  tgt.setTransform(convertStructureMapTransform(src.getTransform()));
 for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter())
  tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t));
 return tgt;
}
origin: ca.uhn.hapi.fhir/hapi-fhir-structures-r4

private void processTarget(String ruleId, TransformContext context, Variables vars, StructureMap map, StructureMapGroupComponent group, StructureMapGroupRuleTargetComponent tgt, String srcVar, boolean atRoot) throws FHIRException {
  Base dest = null;
  if (tgt.hasContext()) {
    dest = vars.get(VariableMode.OUTPUT, tgt.getContext());
   if (dest == null)
     throw new FHIRException("Rule \""+ruleId+"\": target context not known: "+tgt.getContext());
   if (!tgt.hasElement())
     throw new FHIRException("Rule \""+ruleId+"\": Not supported yet");
  }
   Base v = null;
   if (tgt.hasTransform()) {
     v = runTransform(ruleId, context, map, group, tgt, vars, dest, tgt.getElement(), srcVar, atRoot);
     if (v != null && dest != null)
       v = dest.setProperty(tgt.getElement().hashCode(), tgt.getElement(), v); // reset v because some implementations may have to rewrite v when setting the value
   } else if (dest != null) 
     v = dest.makeProperty(tgt.getElement().hashCode(), tgt.getElement());
   if (tgt.hasVariable() && v != null)
     vars.add(VariableMode.OUTPUT, tgt.getVariable(), v);
 }
origin: jamesagnew/hapi-fhir

public static org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent convertStructureMapGroupRuleTargetComponent(org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetComponent src) throws FHIRException {
 if (src == null || src.isEmpty())
  return null;
 org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent tgt = new org.hl7.fhir.dstu2016may.model.StructureMap.StructureMapGroupRuleTargetComponent();
 copyElement(src, tgt);
 if (src.hasContext())
  tgt.setContext(src.getContext());
 if (src.hasContextType())
  tgt.setContextType(convertStructureMapContextType(src.getContextType()));
 if (src.hasElement())
  tgt.setElement(src.getElement());
 if (src.hasVariable())
  tgt.setVariable(src.getVariable());
 for (Enumeration<org.hl7.fhir.r4.model.StructureMap.StructureMapTargetListMode> t : src.getListMode())
  tgt.addListMode(convertStructureMapTargetListMode(t.getValue()));
 if (src.hasListRuleId())
  tgt.setListRuleId(src.getListRuleId());
 if (src.hasTransform())
  tgt.setTransform(convertStructureMapTransform(src.getTransform()));
 for (org.hl7.fhir.r4.model.StructureMap.StructureMapGroupRuleTargetParameterComponent t : src.getParameter())
  tgt.addParameter(convertStructureMapGroupRuleTargetParameterComponent(t));
 return tgt;
}
org.hl7.fhir.r4.modelStructureMap$StructureMapGroupRuleTargetComponentgetContext

Popular methods of StructureMap$StructureMapGroupRuleTargetComponent

  • <init>
    Constructor
  • addListMode
  • addParameter
  • getContextType
  • getElement
  • getListMode
  • getListRuleId
  • getParameter
  • getTransform
  • getVariable
  • hasContext
  • hasElement
  • hasContext,
  • hasElement,
  • hasTransform,
  • hasVariable,
  • isEmpty,
  • setContext,
  • setContextType,
  • setElement,
  • setListRuleId

Popular in Java

  • Reactive rest calls using spring rest template
  • setScale (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
  • findViewById (Activity)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • BigDecimal (java.math)
    An immutable arbitrary-precision signed decimal.A value is represented by an arbitrary-precision "un
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • FileUtils (org.apache.commons.io)
    General file manipulation utilities. Facilities are provided in the following areas: * writing to a
  • Get (org.apache.hadoop.hbase.client)
    Used to perform Get operations on a single row. To get everything for a row, instantiate a Get objec
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now