php-fhir icon indicating copy to clipboard operation
php-fhir copied to clipboard

Custom profiles

Open dennisverspuij opened this issue 5 years ago • 5 comments

Hi, I am looking for a PHP FHIR client model code generation library that supports profiles other than core STU3/R4. This library looks great - and about the only one for PHP - but unfortunately generates code based on the xsd's instead of xml/json structure definitions, like the libraries for other languages do. I was wondering why it was chosen to do so, and whether or not is is possible or planned to support structure definitions instead? Or do you know of other ways to e.g. generate xsd's based on custom profiles? In particular I'd like to implement model classes supporting the dutch HL7/MedMij standards. Thanks!

dennisverspuij avatar May 01 '20 16:05 dennisverspuij

The xsd's were chosen as they define the spec. You need to have prior knowledge of the spec in order to parse profiles.

Enabling parsing from an arbitrary profile is definitely possible, but not trivial. It is something I can look at, but I am not planning on dedicating significant time to this project in the near term.

If you wish to work on a PR or provide sponsorship, either would provide additional motivation for this to take priority over other projects.

dcarbone avatar May 01 '20 17:05 dcarbone

Hi, I'm also interested in for French implementation. https://simplifier.net/frenchprofiledfhirar

phpmike avatar May 02 '20 08:05 phpmike