Dear members,
The question: Do you know the URL or the way how to split Full FHIR JSON schema into multiple small files?
I’m trying to define OpenApi Schema and use fhir.schema.json as a source of references.
Example
Payload:
type: object
required:
- “resource”
properties:
resource:
anyOf:
# If you want to kill your browser: please uncomment this line
- $ref: “https://api-zedoc-docs.s3-ap-southeast-1.amazonaws.com/fhir.schema.json#/definitions/Patient”
- $ref: “https://api-zedoc-docs.s3-ap-southeast-1.amazonaws.com/fhir.schema.json#/definitions/EnrollmentRequest”
fhir.schema.json has 60 000 lines and when I tried to load this OpenAPI spec into the Swagger Editor (on a local machine) it crashed my browser (Chrome used 3 Gb of Ram).
I try to find FHIR JSON schema that was split into multiple small files, like defined here patient.schema.json.html and also failed.
Example
“id”: {
“description”: “The logical id of the resource, as used in the URL for the resource. Once assigned, this value never changes.”,
“$ref”: “id.schema.json#/definitions/id”
},
The FileName is “id.schema.json”
The question: Do you know the URL or the way how to split Full FHIR JSON schema into multiple small files?