Skip to content

Validate FHIR resources directly in your browser. This open-source tool checks required fields, highlights missing elements, and flags invalid values for common resource types—all without server dependencies. Ideal for quick diagnostics, learning FHIR structure, or validating profiles securely.

License

Notifications You must be signed in to change notification settings

josephbartlett/fhir-resource-validator

Repository files navigation

FHIR Resource Validator

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.

Usage

  1. Open fhir-resource-validator.html in your browser (double-click the file or use your browser's File ➜ Open option).
  2. Paste a FHIR resource JSON document into FHIR Resource JSON.
  3. (Optional) Paste a StructureDefinition JSON into Profile/StructureDefinition JSON to validate against a specific profile.
  4. (Optional) Extend the allowed resource types by entering comma-separated values in Additional valid resource types.
  5. Click Validate. Validation messages will appear below the form.

Example

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"
}

Testing

This project uses Jest for unit tests. Install dependencies and run the test suite with:

npm install
npm test

Contributing

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.

About

Validate FHIR resources directly in your browser. This open-source tool checks required fields, highlights missing elements, and flags invalid values for common resource types—all without server dependencies. Ideal for quick diagnostics, learning FHIR structure, or validating profiles securely.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published