Comments (1)
Thanks for reporting this issue/suggestion and sorry for the delay in responding to this!
I think the suggestion makes sense and is something we should support in the library (without having to resort to wrapping it in an Array or jumping through other hoops).
Currently the library will "inflate" these complex elements if they are provided as a simple Hash. e.g.
range = FHIR::Range.new(low: {value: 18})
range.valid? # => true
Wrapping an element which should have a cardinality of 0..1 in an Array is undesirable and as such I'm not too keen on the second possibility.
from fhir_models.
Related Issues (20)
- replace/remove bcp47 gem dependency
- remove Gemfile.lock from gem
- Regular expressions for primitives are not anchored
- Error incorrectly raised: Unable to inflate embedded class FHIR::Coding HOT 4
- concurrent support for multiple fhir versions HOT 9
- Logging entire request body causes issues in Crucible CI HOT 1
- Profile Validation doesn't validate as hierarchy HOT 2
- surprising output for rake task HOT 3
- Frequent warnings: "Unhandled and unrecognized class/type: Reference" HOT 1
- require 'json'
- generate `FHIR::Resource` and `FHIR::DomainResource`, include by inheritance HOT 5
- FHIR R4 Valid Code Issues
- Generating Narrative Div's HOT 3
- Validation fails on contained resources HOT 3
- Client response body conversion to JSON HOT 1
- Add LICENSE file?
- FHIRPath nested extention issue
- STU3 & DSTU2 FHIR resources support HOT 2
- support for datatype extension
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_models.