Conversation
Co-authored-by: Aleksandr Penskoi <alexandr.penskoi@health-samurai.io>
| #### Installation | ||
|
|
||
| ``` shell | ||
| poetry add fhirpy-types-r4b@0.1.1 |
There was a problem hiding this comment.
And we need to explain how to generate dataclasses. Ideally, it will be nice to have similar structure for that and next section.
There was a problem hiding this comment.
If I got it right you mean generating data models with fhirpy-types. But the idea here is that you do not have to generate them manually, since there are pre-baked packages in PyPi.
|
|
||
| ```sh | ||
| # generate FHIR data models | ||
| fscg generate --generator python --output generated --package hl7.fhir.r4.core:4.0.1 |
There was a problem hiding this comment.
Can we also generate classes for our custom resources? E.g. AidboxSubscriptionTopic?
There was a problem hiding this comment.
Do you mean extending example with custom resources to highlight the advantages of the fhir-schema-codegen over the fhirpy-types package? I think it's mainly a question for fhir-schema-codegen. We could add this later, as soon as it becomes possible to generate custom resources from Aidbox instance.
The same applies to other features: I propose enhancing this example gradually, in line with the evolution of fhir-schema-codegen.
Co-authored-by: Aleksandr Penskoi <aleksandr.penskoi@gmail.com>
No description provided.