PREFIX fhir: PREFIX fhirvs: PREFIX xsd: BASE start=@ AND {fhir:nodeRole [fhir:treeRoot]} # A structured set of questions CLOSED { a [fhir:Questionnaire]; 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:Questionnaire.url @?; # Canonical identifier for this # questionnaire, represented as a # URI (globally unique) fhir:Questionnaire.identifier @*; # Additional identifier for the # questionnaire fhir:Questionnaire.version @?; # Business version of the # questionnaire fhir:Questionnaire.name @?; # Name for this questionnaire # (computer friendly) fhir:Questionnaire.title @?; # Name for this questionnaire (human # friendly) fhir:Questionnaire.derivedFrom @*; # Instantiates protocol or definition fhir:Questionnaire.status @ AND {fhir:value @fhirvs:publication-status}; # draft | active | retired | unknown fhir:Questionnaire.experimental @?; # For testing purposes, not real # usage fhir:Questionnaire.subjectType @ AND {fhir:value @fhirvs:resource-types}*; # Resource that can be subject of # QuestionnaireResponse fhir:Questionnaire.date @?; # Date last changed fhir:Questionnaire.publisher @?; # Name of the publisher # (organization or individual) fhir:Questionnaire.contact @*; # Contact details for the publisher fhir:Questionnaire.description @?; # Natural language description of # the questionnaire fhir:Questionnaire.useContext @*; # The context that the content is # intended to support fhir:Questionnaire.jurisdiction @*; # Intended jurisdiction for # questionnaire (if applicable) fhir:Questionnaire.purpose @?; # Why this questionnaire is defined fhir:Questionnaire.copyright @?; # Use and/or publishing restrictions fhir:Questionnaire.approvalDate @?; # When the questionnaire was # approved by publisher fhir:Questionnaire.lastReviewDate @?; # When the questionnaire was last # reviewed fhir:Questionnaire.effectivePeriod @?; # When the questionnaire is expected # to be used fhir:Questionnaire.code @*; # Concept that represents the # overall questionnaire fhir:Questionnaire.item @*; # Questions and sections within the # Questionnaire fhir:index xsd:integer? # Relative position in a list } # Questions and sections within the Questionnaire 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:Questionnaire.item.linkId @; # Unique id for item in questionnaire fhir:Questionnaire.item.definition @?; # ElementDefinition - details for # the item fhir:Questionnaire.item.code @*; # Corresponding concept for this # item in a terminology fhir:Questionnaire.item.prefix @?; # E.g. "1(a)", "2.5.3" fhir:Questionnaire.item.text @?; # Primary text for the item fhir:Questionnaire.item.type @ AND {fhir:value @fhirvs:item-type}; # group | display | boolean | # decimal | integer | date | # dateTime + fhir:Questionnaire.item.enableWhen @*; # Only allow data when fhir:Questionnaire.item.enableBehavior @ AND {fhir:value @fhirvs:questionnaire-enable-behavior}?; # all | any fhir:Questionnaire.item.required @?; # Whether the item must be included # in data results fhir:Questionnaire.item.repeats @?; # Whether the item may repeat fhir:Questionnaire.item.readOnly @?; # Don't allow human editing fhir:Questionnaire.item.maxLength @?; # No more than this many characters fhir:Questionnaire.item.answerValueSet @?; # Valueset containing permitted # answers fhir:Questionnaire.item.answerOption @*; # Permitted answer fhir:Questionnaire.item.initial @*; # Initial value(s) when item is # first rendered fhir:Questionnaire.item.item @*; # Nested questionnaire items fhir:index xsd:integer? # Relative position in a list } # Nested questionnaire items CLOSED { fhir:index xsd:integer? # Relative position in a list } # Permitted answer 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 ( # Answer value fhir:Questionnaire.item.answerOption.valueInteger @ | fhir:Questionnaire.item.answerOption.valueDate @ | fhir:Questionnaire.item.answerOption.valueTime @