An open API service indexing awesome lists of open source software.

https://github.com/josephbartlett/fhir-resource-validator

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.
https://github.com/josephbartlett/fhir-resource-validator

browser-tool client-side fhir fhir-resources fhir-validator health-it healthcare hl7 integration-tool interoperability patient-data privacy security validation

Last synced: 4 months ago
JSON representation

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.

Awesome Lists containing this project

README

          

# FHIR Resource Validator

Validate [FHIR](https://www.hl7.org/fhir/overview.html) 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**:

```json
{
"resourceType": "Patient",
"id": "example",
"name": [
{
"family": "Doe",
"given": ["John"]
}
],
"gender": "male",
"birthDate": "1990-01-01"
}
```

## Testing

This project uses [Jest](https://jestjs.io/) 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](https://opensource.org/licenses/MIT).