private Refinement attribute() throws FHIRException { Refinement res = new Refinement(); res.setStart(cursor); res.name = attributeName(); fixed('='); res.value = attributeValue(); ws(); res.setStop(cursor); return res; }
private void addPeriodQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Period"); addQuestion(group, QuestionnaireItemType.DATETIME, path, "low", "start:", answerGroups); addQuestion(group, QuestionnaireItemType.DATETIME, path, "end", "end:", answerGroups); }
private void addContactPointQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "ContactPoint"); addQuestion(group, QuestionnaireItemType.CHOICE, path, "system", "type:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/contact-point-system")); addQuestion(group, QuestionnaireItemType.STRING, path, "value", "value:", answerGroups); addQuestion(group, QuestionnaireItemType.CHOICE, path, "use", "use:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/contact-point-use")); }
public StructureMapUtilities(IWorkerContext worker, ITransformerServices services, ProfileKnowledgeProvider pkp) { super(); this.worker = worker; this.services = services; this.pkp = pkp; fpe = new FHIRPathEngine(worker); fpe.setHostServices(new FFHIRPathHostServices()); }
@Override public void evaluate(StringBuilder b, Resource resource, LiquidEngineContext ctxt) throws FHIRException { if (compiled == null) compiled = engine.parse(condition); boolean ok = engine.evaluateToBoolean(ctxt, resource, resource, compiled); List<LiquidNode> list = ok ? thenBody : elseBody; for (LiquidNode n : list) { n.evaluate(b, resource, ctxt); } } }
private void addTimingQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Schedule"); addQuestion(group, QuestionnaireItemType.STRING, path, "text", "text:", answerGroups); addQuestion(group, QuestionnaireItemType.DATETIME, path, "date", "date:", answerGroups); QuestionnaireItemComponent q = addQuestion(group, QuestionnaireItemType.REFERENCE, path, "author", "author:", answerGroups); ToolingExtensions.addAllowedResource(q, "Patient"); ToolingExtensions.addAllowedResource(q, "Practitioner"); ToolingExtensions.addAllowedResource(q, "RelatedPerson"); }
void skipComments() throws FHIRLexerException { while (!done() && hasComment()) next(); } public int getCurrentStart() {
public LiquidDocument parse(String name) throws FHIRException { this.name = name; LiquidDocument doc = new LiquidDocument(); parseList(doc.body, new String[0]); return doc; }
public void add(VariableMode mode, String name, String path, Property baseProperty, Property profileProperty, TypeDetails types) { add(mode, name, new PropertyWithType(path, baseProperty, profileProperty, types)); }
public StructureMapUtilities(IWorkerContext worker, ITransformerServices services) { super(); this.worker = worker; this.services = services; fpe = new FHIRPathEngine(worker); fpe.setHostServices(new FFHIRPathHostServices()); }
private void addIdentifierQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Identifier"); addQuestion(group, QuestionnaireItemType.STRING, path, "label", "label:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "system", "system:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "value", "value:", answerGroups); }
private void addAgeQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Age"); addQuestion(group, QuestionnaireItemType.CHOICE, path, "comparator", "comp:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/quantity-comparator")); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); addQuestion(group, QuestionnaireItemType.CHOICE, path, "units", "units:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/duration-units")); }
public StructureMapUtilities(IWorkerContext worker) { super(); this.worker = worker; fpe = new FHIRPathEngine(worker); fpe.setHostServices(new FFHIRPathHostServices()); }
private void addRatioQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Ratio"); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "numerator", "numerator:", answerGroups); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "denominator", "denominator:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); }
private void addQuantityQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Quantity"); addQuestion(group, QuestionnaireItemType.CHOICE, path, "comparator", "comp:", answerGroups, resolveValueSet("http://hl7.org/fhir/vs/quantity-comparator")); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "code", "coded units:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "system", "units system:", answerGroups); }
private void addSimpleQuantityQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Quantity"); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "code", "coded units:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "system", "units system:", answerGroups); }
private void addDurationQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Duration"); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); }
private void addRangeQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Range"); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "low", "low:", answerGroups); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "high", "high:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "units", "units:", answerGroups); }
private void addMoneyQuestions(QuestionnaireItemComponent group, ElementDefinition element, String path, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups) throws FHIRException { ToolingExtensions.addFhirType(group, "Money"); addQuestion(group, QuestionnaireItemType.DECIMAL, path, "value", "value:", answerGroups); addQuestion(group, QuestionnaireItemType.STRING, path, "currency", "currency:", answerGroups); }