Validate FHIR resource JSON directly in your browser. The validator checks required fields and value set conformance for common resources without transmitting your data to any server. The list of recognized resource types is loaded from the FHIR specification and can be extended through the interface.
- Open
fhir-resource-validator.html
in your browser (double-click the file or use your browser's File ➜ Open option). - Paste a FHIR resource JSON document into FHIR Resource JSON.
- (Optional) Paste a StructureDefinition JSON into Profile/StructureDefinition JSON to validate against a specific profile.
- (Optional) Extend the allowed resource types by entering comma-separated values in Additional valid resource types.
- Click Validate. Validation messages will appear below the form.
Paste the following example Patient resource into the FHIR Resource JSON field and click Validate:
{
"resourceType": "Patient",
"id": "example",
"name": [
{
"family": "Doe",
"given": ["John"]
}
],
"gender": "male",
"birthDate": "1990-01-01"
}
This project uses Jest for unit tests. Install dependencies and run the test suite with:
npm install
npm test
Contributions are welcome! If you have suggestions or improvements:
- Fork the repository and create a new branch.
- Make your changes with clear commit messages.
- Submit a pull request describing your changes and why they're beneficial.
For major changes, please open an issue to discuss the proposal first.
This project is released under the MIT License.