Go package with struct definitions for FHIR v5 resources. Must-have for type-safe handling of FHIR requests and responses.
Features:
- FHIR v5.0.0.
- Uses the modern JSON v2
- Defines tags for JSON, XML, and BSON.
- Autogenerated from official specs.
go get github.com/orsinium-labs/fhiresimport (
"encoding/json/v2"
"github.com/orsinium-labs/fhires/fhires"
)
var patient fhir.Patient
err := json.Unmarshal(data, &patient)