This page helps to practice essential JavaScript skills needed in building healthcare applications using FHIR and eventually integrate with EHR systems like Epic through SMART-on-FHIR.
this keyword, event listeners)Click any button to rename it. This show how this refers to the clicked element and how to update DOM content dynamically.
Click the button to double all values in the list below.
This teaches:
selecting sets of DOM nodes
loops
innerHTML updates
parseInt() for numeric operation
Soon, we’ll build a full interface on:
Patient resources retrieved from a FHIR server.
This introduces CRUD: Create, Read, Update, Delete. Here, each “patient” is just a string. Later, these will become full FHIR Patient objects.
Shows:
• event bubbling
• stopPropagation()
• async delays (setTimeout)
• cancelable operations
• Promise-like delayed actions
Here we the official fhirclient.js library
to communicate with a FHIR test server.
| ID | First Name | Last Name | Actions |
|---|