Comments (2)
That is indeed a fundamentally different design and sounds more like a new library if the structs are generated in user code. I don't think this will find its way into this crate.
However, due to profiling still being in conformance with the FHIR resource layout, you could make a trait on top:
There could be a proc macro generating a trait for a profile. The trait is then implemented for the specified resources in the profile and validates conformance with the profile. That way you would need to remember to call the validation though.
from fhir-sdk.
There is now even more possibilities: It would be possible to make your own structs for the profile (in what way ever, generated or not). Then you can use custom requests and parse the response to your types instead. The rest of the machinery would still be used, only URLs and response status handling would be custom.
Though it might even be possible to use the normal client methods without custom requests at all. It might be possible to just implement the required traits.
That said, I don't think I will bake in custom profile support itself, but allow crates on top to implement that without a lot of effort. So, closing this for now, but feel free to reopen if you think it is not easy enough to build profiles on top.
from fhir-sdk.
Related Issues (20)
- [SUGGESTION] Wrappers/helpers for data creation/editing of FHIR resources HOT 4
- Improve compile time and its resource usage HOT 3
- Allow to compile with all features enabled HOT 1
- Reduce code duplication across FHIR versions
- Use POST for initial search requests until paging?
- Examples for loading resources from JSON HOT 2
- CodeSystem $lookup operation HOT 3
- Missing `history` operation HOT 3
- Duplicate `resourceType` entry when serializing `Resource` enum to json HOT 1
- `ClientBuilder` requires the `auth_callback` to be `Copy` HOT 3
- Derive Hash for ResourceType HOT 1
- How to PATCH a Vector or a single element in a Vector? HOT 4
- SMART on FHIR implementation & example HOT 8
- Search Pagination HOT 7
- Is there a way to search over Bundle resources? HOT 3
- If the server responds with a FHIR version, check its correctness
- Chrono feature HOT 3
- Refine bundle entry resolution in Page
- Various small fixes and improvements
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fhir-sdk.