Skip to main content

This tool is not a conformance validator. It checks the presence of some tags and the format of some identifiers, but it does not use the official XSD or Schematron: a document that shows no errors here can still be rejected by the real system.

Third-party data: a CDA contains a person's identity and health data. The document stays in your browser, our code does not send it to any server and does not save it. The site does use usage-analytics tools: the fields holding the document are excluded from recording, but still use sample or anonymised documents, not real reports.

What this tool checks

It checks

  • Well-formed XML; no DOCTYPE or ENTITY.
  • Root element namespace equal to urn:hl7-org:v3, and ClinicalDocument root.
  • Presence (anywhere) of typeId, templateId, id, code, effectiveTime, recordTarget, author, custodian, component.
  • typeId with root 2.16.840.1.113883.1.3 and extension POCD_HD000040.
  • First id: root attribute present and prefixed 2.16.840.1.113883; extension present.
  • First effectiveTime: value attribute present and in HL7 format (8-14 digits, optional time zone).
  • recordTarget with at least one id; author with assignedAuthor; custodian with representedCustodianOrganization.
  • Presence of structuredBody, and of templateIds found in the tool's internal map.

It does NOT check

  • Validity against the CDA XSD schema.
  • The Schematron and template rules of the document type (cardinality, order, mandatory sections).
  • The business rules applied by the Gateway.
  • Whether the Gateway would accept the document: here the Gateway is simulated.
  • Clinical correctness and codes (LOINC, ICD, AIC), value sets and OIDs.
  • Correctness of the tax code and of personal data.
  • Digital signatures and publication metadata.

Limits: pasted text up to 2 MiB; beyond that the document is not analysed. A non-XML or corrupted file, or one with a DOCTYPE, produces an error and no other check.

Work on healthcare systems or FSE integrations?

Subscribe to the monthly newsletter of Federico for insights on health care interopertability, HL7 / FHIR standards and back-end development in a healthcare context.

Come utilizzare FSE Document Validator

Paste the CDA document in the "CDA checks" tab

Paste your CDA XML, or load the sample document to see right away how the checks work on a sample laboratory report.

Run the checks and read the outcome

The tool checks the HL7 v3 namespace, the ClinicalDocument root element, some mandatory tags (typeId, templateId, id, code, effectiveTime, recordTarget, author, custodian, component), the presence of structuredBody and the OID format, returning errors, warnings and information. It does not validate against XSD or Schematron.

Go to the "INI Gateway (simulated)" tab

Pick one of the 8 simulated scenarios (publishDocument, searchDocument, getDocument with success/error outcomes) entering a patientId, documentId or search query, to test how your integration should handle each Gateway response.

Analyze simulated JSON response

Observe HTTP status, JSON payload and error codes from each scenario to verify error handling in your client before integrating with the real environment.

Suggerimenti

  • Always start from the sample document included in the tool: it is a minimal CDA laboratory report, useful as a base to modify for your tests.
  • Be aware of warnings (not just errors): an invalid OID or malformed effectiveTime can prevent the document from being saved, but may cause compatibility issues with other regional FSE systems.
  • Use the Gateway INI simulator to verify that your client correctly handles all error scenarios (409 duplicate, 403 unauthorized, 404 not found), not just successful paths.

Domande frequenti

What exactly does this tool check?

It checks the HL7 v3 namespace, the ClinicalDocument root element, the presence of some mandatory tags of the CDA R2 standard (typeId, templateId, id, code, effectiveTime, recordTarget, author, custodian, component), the format of the document and patient OIDs, the format of effectiveTime and the presence of structuredBody. The presence of structuredBody is only a hint of level 3: the section structure and the template rules are not verified.

Are clinical documents that are linked sent to a server?

No: the checks run in the browser with DOMParser and our code does not send, store or log the pasted text; you can verify it by trying the tool offline after the first page load. The site does use usage-analytics tools, though: the fields holding the document are excluded from recording, but a CDA contains a person's data, so use sample or anonymised documents.

What are "template IDs" and how are they recognized?

templateIds are OIDs (e.g. 2.16.840.1.113883.2.9.10.1.1) that identify the specific FSE document type, such as laboratory report, discharge letter, patient summary or pharmaceutical prescription. The tool compares the templateIds it finds with an internal map of 10 OIDs. That map has not been verified against the official catalogue: treat it as a hint, not as recognition of the document type.

Does the Gateway simulator return real data from the national healthcare system?

No. They are simulated responses, generated in the browser: no call is made and no document is sent. They follow the shape of the IHE XDS.b profiles (e.g. XDSDocumentUniqueIdError, XDSUnknownDocumentEntry) but are not verified against the real interface of the FSE 2.0 Gateway; they exercise your client's error handling, they do not predict what the Gateway would do.

Is a document with no errors accepted by the real INI Gateway?

No. The tool is not a conformance validation: it only checks some mandatory structures, without XSD or Schematron, and the INI Gateway here is simulated. A document that shows no errors here can still be rejected by the real system, which applies the XSD schemas and the AGID/Ministry of Health profiles required for FSE accreditation.

Want to learn more?

Read our in-depth articles on related topics: