nazrulworld / fhir.resources

FHIR Resources https://www.hl7.org/fhir/resourcelist.html
https://pypi.org/project/fhir.resources/
Other
365 stars 104 forks source link

How to add profiling into the resources? #107

Open prafulbagai opened 2 years ago

prafulbagai commented 2 years ago

Description

How to implement US-core profiling? I want to apply us-core profiling validations on the Resources. Is there any extra package that need to be integrated? Or is it supported by-default?

prafulbagai commented 2 years ago

Any help in this regard @nazrulworld ?

nazrulworld commented 2 years ago

@prafulbagai unfortunately there is no support for profile validation built-in. There are several ways https://github.com/nazrulworld/fhir.resources/blob/main/README.rst#custom-validators you can inject as a custom validator, for example in your case profile validator.

I, myself would like to see profile validation built-in into this library! Unfortunately, I don’t have available time now to look at this feature. we always welcome 🙏 any kind of contributions.