Stream: hapi
Topic: Parse R4 JSON to R3?
Kevin Chen (Jul 16 2019 at 19:51):
Can the FHIRContext R3 parser parse FHIR JSON data that is in R4 format?
Grahame Grieve (Jul 16 2019 at 21:21):
no. you need to parse it with an R4 parser, and then use the conversion code to convert to R3.
Kevin Chen (Jul 16 2019 at 21:39):
Is there any conversion code that exists to modify R4 code to be R3 compatible? Currently when I use the R3 processor on certain R4 JSON data (Condition, Patient) it works mostly except for the onsetAge, clinicalStatus, verificationStatus, and extensions (not all extensions are carried over?). I was wondering if it would be feasible to just use the R3 parser on R4 data and then fix the inconsistencies.
Kevin Chen (Jul 16 2019 at 23:03):
Is there any conversion code that exists to modify R4 code to be R3 compatible? Currently when I use the R3 processor on certain R4 JSON data (Condition, Patient) it works mostly except for the onsetAge, clinicalStatus, verificationStatus, and extensions (not all extensions are carried over?). I was wondering if it would be feasible to just use the R3 parser on R4 data and then fix the inconsistencies.
Sorry disregard the onsetAge and extensions part, there was an issue with my JSON data.
Grahame Grieve (Jul 17 2019 at 10:56):
no. you have to recode for the changes
Last updated: Apr 12 2022 at 19:14 UTC