The pharmacist care plan is designed to be interoperable between the C-CDA and FHIR versions. The following transformation code is provided to enable transformation of a C-CDA pharmacist care plan to a FHIR pharmacist care plan.
The transforms are XSLT with a java wrapper, so java is required to run them.
Download the transforms as a zipped archive here.
To transform a C-CDA pharmacist care plan to FHIR (XML) use cda2fhir-20180503.jar and these command line flags
(UPPER_CASE denotes user-specified variables):
java -jar cda2fhir-20180503.jar -cda INPUT_FILE -fhir OUTPUT_FILE -transform “transforms\cda2fhir\cda2fhir.xslt”