Components

GA<tiro-form-filler/>

Form Filler

The primary component for rendering FHIR Questionnaires.

Attributes:

  • questionnaire - Canonical URL with version (e.g., url|version)
  • sdc-endpoint-address - SDC FHIR server URL
  • launch-context - JSON object with FHIR resources (Patient, Encounter)
  • read-only - Disable form editing

Methods:

  • getResponse() - Get current QuestionnaireResponse
  • submit() - Programmatically submit the form
  • checkValidity() - Check if form is valid

Events:

  • tiro-ready - Fired when the questionnaire is loaded. e.detail.questionnaire
  • tiro-update - Fired on every form change. e.detail.response
  • tiro-submit - Fired when the form is submitted. e.detail.response
  • tiro-validate - Fired after validation. e.detail.isValid, e.detail.operationOutcome
  • tiro-error - Fired on errors. e.detail.error
GA<tiro-narrative/>

Narrative

Generates human-readable clinical narratives from questionnaire responses.

Attributes:

  • for - ID of the <tiro-form-filler> to link to
<tiro-narrative for="my-form"></tiro-narrative>

Events:

  • tiro-update - Fired when narrative content changes. e.detail.narrative

Was this page helpful?