Aidbox do on fly conversion between FHIR and AIdbox formats. To debug this transformation you can use POST /$to-format/fhir
and POST /$to-format/aidbox
endpoints. Which will show you result of transformation with additional info:
POST /$to-format/aidbox​resourceType: ObservationvalueString: test​# 200​# result of transformationresource:resourceType: Observationvalue: {string: test}# dsl which is used for transformationtransform:hasMember: {tr/reference: true, tr/ref: Reference, tr/isCollection: true}derivedFrom: {tr/reference: true, tr/ref: Reference, tr/isCollection: true}...
And back:
POST /$to-format/fhir​resourceType: Observationvalue:string: test​# 200resource:resourceType: ObservationvalueString: testtransform:hasMember: {tr/reference: true, tr/ref: Reference, tr/isCollection: true}derivedFrom: {tr/reference: true, tr/ref: Reference, tr/isCollection: true}encounter: {tr/reference: true, tr/ref: Reference}
How to read transform DSL
tr/reference - instruction to transform references
tr/ref - recursively go to type definition or follow content-ref
tr/union - translate union / choice types
tr/ext - translate known extensions