R5b Version of the FHIR Specification
- No more freezed. I really liked freezed, but it doesn't play nicely with some other code generators.
- Speaking of which, since I'm already generating most of the class, I went ahead and generated
toJson/fromJsonand==, no external code generation packages (as always, please let me know about mistakes) - All of the serializable methods and copyWith should still work as before.
- With the exception that I couldn't think of a good way to clear a field by passing null, so I created a new function that clears only the fields you specificall say.
- Many more enums were incorporated than previously. I think this makes it easier to use, but it does make it less flexible. If you have a field with a value that is not allowed by the current enum, please let me know and I'll look into it.
- I've moved the Primitive back into this package
- Newly included FhirString, for standardization and because it's helpful in some other packages like fhir-mapping. I'm going to try and include almost all of the usual string functions so you should be able to work with it almost like you would a normal String in dart.
- Primitives are much stricter than previously. They will throw an error if you try and have a value that is improperly formatted.
- I'm also integrating the Element associated with the Primitive into the Primitive itself (this is closer to the original FHIR and XML version)
- You should still be able to work with the the same as previously, but you can also access the Element associated. This does mean there may be times where a Primitive's value is null but the Element is not
- Enums are going to follow this same pattern. As an Enum is essentially an enumerated Code value in FHIR, they also need to be associated with an Element, so the same rules are going to apply.
-
This was originally multiple different packages, and each package supported all FHIR versions. This became too big and broke pub.dev. I have therefore grouped them together by FHIR version instead of by functionality.
-
This library now contains
-
Follow the links for the individual README files.
- As all parts of this are new (FHIR, Flutter, using the two together), I'd love to hear from you if you're working in this space. Open to PR, suggestions or requests. You can email me at grey@fhirfli.dev. Or, feel free to join our Slack!.
A Dart/Flutter package for working with FHIR® resources. FHIR® is the registered trademark of HL7 and is used with the permission of HL7. Use of the FHIR trademark does not constitute endorsement of this product by HL7.