formancy.ai

Formancy Health · built on formancy

Forms, answers and PDFs, exported to the HL7® FHIR® standard

Formancy Health turns a formancy form into an SDC Questionnaire, a person’s answers into its QuestionnaireResponse, and a PDF, such as a Formancy Report referral letter, into a DocumentReference in a document Bundle. A Swiss referral is written as CH ORF 3.0.2 on CH Core 6.0.0. It is a library: your application calls it, gets FHIR R4 JSON back and sends it itself.

Try the demoRead the getting-started guide

Not free · paid in production. Reading the source, evaluating, developing and testing are free, in a company too. No published price yet: ask at info@formancy.ai.

What it makes

Zuweisung · a synthetic referral

Question for the specialist*
Synthetische Fragestellung, ohne klinische Bedeutung
Specialty*
Dermatology
The patient’s language
  • Deutsch
  • Français (chosen)
  • Italiano
  • English

The answers, as a QuestionnaireResponse

{
  "resourceType": "QuestionnaireResponse",
  "meta": {
    "profile": [
      "http://hl7.org/fhir/uv/sdc/StructureDefinition/sdc-questionnaireresponse|4.0.0",
      "http://fhir.ch/ig/ch-orf/StructureDefinition/ch-orf-questionnaireresponse|3.0.2"
    ]
  },
  "questionnaire": "https://forms.synthetic.invalid/Questionnaire/demo-referral|1",
  "status": "completed",
  …
  "item": [
    {
      "linkId": "question",
      "answer": [
        {
          "valueString": "Synthetische Fragestellung, ohne klinische Bedeutung"
        }
      ]
    },
    …
  ]
}

An AHV number whose check digit is wrong, on purpose

check-digit context.patient.ahvn13: its check digit is not the one its identifier system computes from its other digits

Formancy Health’s demo: its synthetic Swiss referral, Zuweisung, filled in by formancy’s renderer, and the QuestionnaireResponse the packages make of those answers, claiming SDC’s and CH ORF’s profiles, cut with “…”. Under it, the refusal the demo shows for an AHV number broken on purpose. Drawn for this page after the demo at formancy.ai/health/; the data is synthetic and has no clinical meaning. The demo runs no validator: in CI, the HL7 FHIR validator judges the synthetic corpus its starting answers come from.

What it does

  • A formancy form as an SDC Questionnaire

    A form becomes an SDC 4.0.0 Questionnaire (HL7’s Structured Data Capture guide), one item per field, translated into the languages the host asks for. A form that cannot be one is refused whole.

  • A submission as a QuestionnaireResponse

    A person’s answers become a QuestionnaireResponse to that Questionnaire, each answer of its item’s type. It is refused whole where an answer cannot be one.

  • A PDF in a DocumentReference, and a document Bundle

    A PDF, such as a Formancy Report referral letter, is carried by its own bytes. A document Bundle holds the Composition first and then only what it refers to, every reference resolved.

  • Swiss referrals as CH ORF 3.0.2 on CH Core 6.0.0

    A referral is written as HL7 Switzerland’s Order & Referral by Form document, with its patient and author in CH Core’s profiles and its orders in CH ORF’s.

  • GLN and AHV numbers checked

    A GLN or an AHV number whose form or check digit is wrong is refused, where the HL7 FHIR validator only warns.

  • Refused whole, never half exported

    What a profile cannot say refuses the whole export, with every refusal at once, each naming where it is and never quoting a value.

  • Every digit kept

    A decimal travels as its text, so 70.50 stays 70.50, never through a JavaScript number, and the same input gives the same bytes.

  • Judged by the HL7 FHIR validator

    A gate of its own runs the HL7 FHIR validator offline, against guide packages pinned by SHA-256, over what the packages write of a synthetic corpus. It runs with no terminology server, so a code from LOINC, SNOMED CT or UCUM is not checked.

Formancy Health’s README says each of these in full, with the decision record behind it.

Not free · paid in production

What teams use it for

  • Sending a Swiss referral (Zuweisung) to a specialist as a CH ORF document
  • Publishing a formancy form to a partner system as an SDC Questionnaire, in several languages
  • Handing a FHIR server the QuestionnaireResponse of a submission, which your application sends
  • Attaching a Formancy Report referral letter PDF to a FHIR document Bundle
  • Catching a wrong GLN or AHV check digit before the document leaves your application

Who it is for

Vendors of the software that hospitals, clinics and practices run. Their forms, a patient’s answers and the letters they print have to leave the application as FHIR R4 JSON for a Swiss partner system: a referral (Zuweisung) as CH ORF, its people in CH Core. The vendor’s application calls the packages, gets the JSON back and sends it itself. It is a library, not a server. It is not intended as a medical device.

How it fits with formancy

formancy — the spec, the engine, the renderers, the builder and the backend — is Apache-2.0 and free, and stays so. Formancy Health depends on its released packages at exact versions and copies none of their code.

Its packages depend on one another and on formancy’s @formancy/spec alone, with no framework, no Node API and no network call. Your application hands them a form, its answers, a PDF or a referral, and sends what they give back. Formancy Report and Formancy Data are optional beside it: a host that exports only forms needs neither.

The forms it exports are formancy’s: build one in the playground.

Status

Release 0.1.0 of 19 October 2026developer preview

A developer preview, not yet for the production export of a person’s record. No lawyer has read the licence, the intended purpose or the trademark position.

Read from the module’s repository on .

Terms

Source-available, not open source: the licence is Formancy Health’s own, not formancy’s Apache-2.0. Formancy Health Source-Available Licence, Version 1, in force from 16 October 2026. Not reviewed by a lawyer.

Formancy Health’s licence, in one table
UseTerms
Read the source and fork the repositoryFree
Evaluate, develop and test — including in companiesFree
Run in production, internally or customer-facingPaid licence
Redistribute inside another software productSeparate commercial agreement
Customer data, health records and generated FHIR resourcesRemain the customer’s

Production licences are requested from the Rightsholder at info@formancy.ai, as section 9 of the licence says. There is no published price. Formancy Report’s and Formancy Data’s packages keep their own licences: a host running them beside these needs that product’s production licence as well.

HL7, FHIR and the FHIR [FLAME DESIGN] are the registered trademarks of Health Level Seven International and their use does not constitute endorsement by HL7.

Try it, then ask about production

Trying it, building with it and testing it cost nothing. Running it in production needs a licence, and there is no published price yet.

Try the demoAsk about a production licence

Not free · paid in production