private void processDataType(StructureDefinition profile, QuestionnaireItemComponent group, ElementDefinition element, String path, TypeRefComponent t, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups, List<ElementDefinition> parents) throws FHIRException { if (t.getCode().equals("code")) addCodeQuestions(group, element, path, answerGroups); else if (Utilities.existsInList(t.getCode(), "string", "id", "oid", "uuid", "markdown")) addStringQuestions(group, element, path, answerGroups); else if (Utilities.existsInList(t.getCode(), "uri", "url", "canonical")) addUriQuestions(group, element, path, answerGroups); else if (t.getCode().equals("boolean")) addBooleanQuestions(group, element, path, answerGroups); else if (t.getCode().equals("decimal")) addDecimalQuestions(group, element, path, answerGroups); else if (t.getCode().equals("dateTime") || t.getCode().equals("date")) addDateTimeQuestions(group, element, path, answerGroups); else if (t.getCode().equals("instant")) addInstantQuestions(group, element, path, answerGroups); else if (t.getCode().equals("time")) addTimeQuestions(group, element, path, answerGroups); else if (t.getCode().equals("CodeableConcept")) addCodeableConceptQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Period")) addPeriodQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Ratio")) addRatioQuestions(group, element, path, answerGroups); else if (t.getCode().equals("HumanName")) addHumanNameQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Address")) addAddressQuestions(group, element, path, answerGroups); else if (t.getCode().equals("ContactPoint")) addContactPointQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Identifier"))
private void processDataType(StructureDefinition profile, QuestionnaireItemComponent group, ElementDefinition element, String path, TypeRefComponent t, List<QuestionnaireResponse.QuestionnaireResponseItemComponent> answerGroups, List<ElementDefinition> parents) throws FHIRException { if (t.getCode().equals("code")) addCodeQuestions(group, element, path, answerGroups); else if (Utilities.existsInList(t.getCode(), "string", "id", "oid", "uuid", "markdown")) addStringQuestions(group, element, path, answerGroups); else if (Utilities.existsInList(t.getCode(), "uri", "url", "canonical")) addUriQuestions(group, element, path, answerGroups); else if (t.getCode().equals("boolean")) addBooleanQuestions(group, element, path, answerGroups); else if (t.getCode().equals("decimal")) addDecimalQuestions(group, element, path, answerGroups); else if (t.getCode().equals("dateTime") || t.getCode().equals("date")) addDateTimeQuestions(group, element, path, answerGroups); else if (t.getCode().equals("instant")) addInstantQuestions(group, element, path, answerGroups); else if (t.getCode().equals("time")) addTimeQuestions(group, element, path, answerGroups); else if (t.getCode().equals("CodeableConcept")) addCodeableConceptQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Period")) addPeriodQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Ratio")) addRatioQuestions(group, element, path, answerGroups); else if (t.getCode().equals("HumanName")) addHumanNameQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Address")) addAddressQuestions(group, element, path, answerGroups); else if (t.getCode().equals("ContactPoint")) addContactPointQuestions(group, element, path, answerGroups); else if (t.getCode().equals("Identifier"))