From 71f204a803563f323f4795cb16989f47464d4491 Mon Sep 17 00:00:00 2001 From: Alexander Kiel Date: Mon, 2 Dec 2019 17:44:19 +0100 Subject: [PATCH] Usage and Develop --- README.md | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 4866ede4..82d2de84 100644 --- a/README.md +++ b/README.md @@ -8,10 +8,18 @@ This repository contains a FHIR® R4 models for Go. The models consist of Go str * unmarshal functions are provided for every resource * enums are provided for every ValueSet used in a [required binding][2], has a computer friendly name and refers only to one CodeSystem +## Usage + +In your project, import `github.com/samply/golang-fhir-models/fhir-models/fhir` and you are done. + ## TODOs -* https://github.com/samply/golang-fhir-models/issues/1 -* https://github.com/samply/golang-fhir-models/issues/2 +* [Support Polymorphic Data Elements](https://github.com/samply/golang-fhir-models/issues/1) +* [Support ValueSets Referring to Multiple CodeSystems](https://github.com/samply/golang-fhir-models/issues/2) + +## Develop + +This repository contains two Go modules, the generated models itself and the generator. Both modules use `go generate` to generate the FHIR models. For `go generate` to work, you have to install the generator first. To do that, run `go install` in the `fhir-models-gen` directory. After that, you can regenerate the FHIR Models under `fhir-models` and the subset of FHIR models under `fhir-models-gen`. ## License