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

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

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

origin: jamesagnew/hapi-fhir

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

 private boolean isSimpleSyntax(StructureMapGroupRuleComponent rule) {
 return 
   (rule.getSource().size() == 1 && rule.getSourceFirstRep().hasContext() && rule.getSourceFirstRep().hasElement() && !rule.getSourceFirstRep().hasVariable()) &&
   (rule.getTarget().size() == 1 && rule.getTargetFirstRep().hasContext() && rule.getTargetFirstRep().hasElement() && !rule.getTargetFirstRep().hasVariable() && !rule.getTargetFirstRep().hasParameter()) &&
   (rule.getDependent().size() == 0 && rule.getRule().size() == 0);
}
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

 b.append("@");
b.append(rt.getContext());
if (rt.hasElement())  {
  b.append('.');
  b.append(rt.getElement());
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: ca.uhn.hapi.fhir/hapi-fhir-structures-r4

 private boolean isSimpleSyntax(StructureMapGroupRuleComponent rule) {
 return 
   (rule.getSource().size() == 1 && rule.getSourceFirstRep().hasContext() && rule.getSourceFirstRep().hasElement() && !rule.getSourceFirstRep().hasVariable()) &&
   (rule.getTarget().size() == 1 && rule.getTargetFirstRep().hasContext() && rule.getTargetFirstRep().hasElement() && !rule.getTargetFirstRep().hasVariable() && !rule.getTargetFirstRep().hasParameter()) &&
   (rule.getDependent().size() == 0 && rule.getRule().size() == 0);
}
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$StructureMapGroupRuleTargetComponenthasElement

Popular methods of StructureMap$StructureMapGroupRuleTargetComponent

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

Popular in Java

  • Updating database using SQL prepared statement
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • getSharedPreferences (Context)
  • onCreateOptionsMenu (Activity)
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • Time (java.sql)
    Java representation of an SQL TIME value. Provides utilities to format and parse the time's represen
  • Set (java.util)
    A Set is a data structure which does not allow duplicate elements.
  • StringTokenizer (java.util)
    Breaks a string into tokens; new code should probably use String#split.> // Legacy code: StringTo
  • JButton (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Best IntelliJ plugins
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