Hi Medplum team, I noticed in the main `medplum` p...
# dev
k
Hi Medplum team, I noticed in the main
medplum
project, there's a package called
definitions
, in it, you guys have a various json files under
dist/fhir/r4/
. It looks like these files are used to build the graph. Do you guys have a seperate project that generates these json files? For example, I noticed you guys have a custom medplum file called
profiles-medplum.json
where you define types specific to medplum. Are these json files defined manually? Or is there a separate project we can access with some sort of UI that auto generate these json files?
n
Curious about this also. I imagine in part they're just using the public FHIR JSON Schema. https://hl7.org/fhir/R4/patient.schema.json.html https://hl7.org/fhir/R4/fhir.schema.json.zip
r
These JSON files are sourced directly from the FHIR specification, and are the root of all our type / scheme generation. They define
StructureDefinition
resources, which is the core of how FHIR defines all sorts of schemas
We follow the same convention for Medplum-specific resources, such as
Project
,
User
, etc.
k
Thanks @rahul1 . Right, so does that mean your team manually defines entities in JSON form that match the
StructureDefinition
structure? or do you guys have a project where you enter key information like entity name, fields, relationships, and it auto generates these files? I imagine it could be quite tedious to define these JSON files manually, especially if there are a lot of new entities and relations. It also seems like it would be hard for other developers to visualize the relations by looking at large JSON files.
172 Views