PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # A structured set of questions and their answers CLOSED { a [fhir:QuestionnaireResponse]; fhir:nodeRole [fhir:treeRoot]?; fhir:Resource.id id?; # Logical id of this artifact fhir:Resource.meta @?; # Metadata about the resource fhir:Resource.implicitRules @?; # A set of rules under which this # content was created fhir:Resource.language @?; # Language of the resource content fhir:DomainResource.text @?; # Text summary of the resource, for # human interpretation fhir:DomainResource.contained @*; # Contained, inline Resources fhir:DomainResource.extension @*; # Additional content defined by # implementations fhir:DomainResource.modifierExtension @*; # Extensions that cannot be ignored fhir:QuestionnaireResponse.identifier @?; # Unique id for this set of answers fhir:QuestionnaireResponse.basedOn @*; # Request fulfilled by this # QuestionnaireResponse fhir:QuestionnaireResponse.partOf @*; # Part of this action fhir:QuestionnaireResponse.questionnaire @?; # Form being answered fhir:QuestionnaireResponse.status @ AND {fhir:value @fhirvs:questionnaire-answers-status}; # in-progress | completed | amended # | entered-in-error | stopped fhir:QuestionnaireResponse.subject @?; # The subject of the questions fhir:QuestionnaireResponse.encounter @?; # Encounter created as part of fhir:QuestionnaireResponse.authored @?; # Date the answers were gathered fhir:QuestionnaireResponse.author @?; # Person who received and recorded # the answers fhir:QuestionnaireResponse.source @?; # The person who answered the # questions fhir:QuestionnaireResponse.item @*; # Groups and questions fhir:index xsd:integer? # Relative position in a list } # Groups and questions CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized fhir:QuestionnaireResponse.item.linkId @; # Pointer to specific item from # Questionnaire fhir:QuestionnaireResponse.item.definition @?; # ElementDefinition - details for # the item fhir:QuestionnaireResponse.item.text @?; # Name for group or question text fhir:QuestionnaireResponse.item.answer @*; # The response(s) to the question fhir:QuestionnaireResponse.item.item @*; # Nested questionnaire response items fhir:index xsd:integer? # Relative position in a list } # Nested questionnaire response items CLOSED { fhir:index xsd:integer? # Relative position in a list } # The response(s) to the question CLOSED { fhir:Element.id string?; # Unique id for inter-element # referencing fhir:Element.extension @*; # Additional content defined by # implementations fhir:BackboneElement.modifierExtension @*; # Extensions that cannot be ignored # even if unrecognized ( # Single-valued answer to the # question fhir:QuestionnaireResponse.item.answer.valueBoolean @ | fhir:QuestionnaireResponse.item.answer.valueDecimal @ | fhir:QuestionnaireResponse.item.answer.valueInteger @ | fhir:QuestionnaireResponse.item.answer.valueDate @ | fhir:QuestionnaireResponse.item.answer.valueDateTime @ | fhir:QuestionnaireResponse.item.answer.valueTime @