- Nothing changed yet.
New Feature
- String type class is now configurable, it is possible to allow empty str value.
Bugfixes
- Issue #75 Remove "tests" from installed package.
- Issue #74 When are Falsy values evaluated as None?
- Fixes some issues for DSTU2 nazrulworld#71 & nazrulworld#70 [ItayGoren]
New Feature
- Parsing YAML file or string/bytes contents, now accept extra parameter
loaderclass. - Parsing from XML file or string/bytes contents are now supported. With possible to provide xmlparser for schema validation purpose.
Bugfixes
- Added correct fhir version name into Primitive Type Base class for
STU3andDSTU2.
New Feature
- Issue #47 add YAML support.
- Issue #51 Help on converting XML to FHIR format.
- Issue #63 Now JSON output key's sequence is matching with original FHIR specification.
Breaking
FHIRAbstractModel.json()andFHIRAbstractModel.dict()parameters signatures are more FHIR specific and additional parameters are removed (pydantic specific).
Bugfixes
- Added missing
element_propertyfield attribute for classFHIRPrimitiveExtension.
- Breaking/Fixes: PR#48
Resource.idtype has been replaced withfhirtypes.Idfromfhirtypes.String(only for R4) [ItayGoren] - Fixes: constraints regex for fhirtypes
Id,Code,Integer,Decimal,UnsignedInt,PositiveIntand so on. [nazrulworld]
- Issue #21 Remaining resources are added. [iatechicken]
- Fixes: wrong
ClaimResponseAddItemAdjudicationTyperesource type name intoDTSU2.
Improvements
FHIRAbstractModel::add_root_validatoris more improved and practical with proper validation, more now possible provide class method as root validator.
Bugfixes
- Issue #41 pydantic.errors.ConfigError: duplicate validator function.
Improvements
- Now supports of
simplejsonis available automatically (depends on importable) along side withorjsonand defaultjsonlibrary. Order of json serializer available (orjson -> simplejson(as fallback) -> json(as default)).
Breaking
orjsonis not available by default, have to use extra_requireorjsonto available that.
pydanticminimum version has been set to1.7.2.
If you face import error ``from pydantic.utils import ROOT_KEY``, please upgrade your pydnatic version to <1.7
Fixes
- Issue #39 added compatibility with
pydanticversion between1.6.xand1.7.x[nazrulworld]
Improvements
Improvements
FHIRAbstractModel::jsonnow takes additional parameterreturn_bytes, indicates json string would be bytes. [nazrulworld]- Issue#38 Add support for FHIR comments. As per suggestion of comments in json from Grahame Grieve, now
fhir_commentsis accepted. [nazrulworld] - FHIR comments filter option is added in
FHIRAbstractModel::json, means it is possible to exclude any comments while generating json string by providing parameterexclude_commentsvalue. [nazrulworld] - More FHIR DSTU2 resources have been added. [Itay Goren]
Improvements
visionprescriptionandsupplyrequestresources added for DSTU2 [iatechicken]
Fixes
Improvements
- orjson_ supports have been available as default json
dumpsandloadsfor Model. FHIRAbstractModel::get_json_encoderclass method now available, which return pydantic compatible json encoder callable, can be used with any json serializer.- More DSTU2 FHIR Resources have added, nazrulworld#21. Thanks to [mmabey].
Fixes
- Fixes URL validation in the case where a primitive type is used as URL (which is allowed in StructureDefinition). [simonvadee]
- Fixes Issue#19 Getting validation errors that don't make sense.
FHIRAbstractModel::get_resource_typeclass method now available, which returning name of the resource.
FHIRAbstractModel::element_propertiesclass method now available, which returning generator ofModelField, those are elements of the resource.- Minor fixes on
enum_values.
Revolutionary evolution has been made, now fully rewritten with modern python, underlying APIs (almost all) have been changed. Please have look at readme section, for howto.
Improvements
- Full support of FHIR Extensibility for Primitive Data Types
Breaking
- Drop support for python 2.7.
Improvements
- FHIR
STU3release version upgraded from3.0.1to3.0.2, Please find changes history here https://www.hl7.org/fhir/history.html. - FHIR
R4release version upgraded from4.0.0to4.0.1, find changes history here https://www.hl7.org/fhir/history.html.
Bugfixes:
- Issue#5 confusing error message "name 'self' is not defined" [nazrulworld]
- Nothing but release stable version.
New features
- Isuue#1 Add DSTU2 Support
Breaking or Improvments
elementProperties: element now has extra propertytype_name. Now format like(name, json_name, type, type_name, is_list, "of_many", not_optional)Thetype_namerefers original type name (code) from FHIR Structure Definition and it would be very helpful while making fhir search, fhirpath navigator.
New features
- Implemented own build policy, now previous version of FHIR® resources are available as python sub-package.
Build info
- Default version is
R4(see version info at 4.0.0b1 (2019-01-13) section) STU3(see version info at 3.0.1 (2019-01-13) section)
- see version info at
4.0.0b1section.
[FHIR] FhirVersion=4.0.0-a53ec6ee1b version=4.0.0 buildId=a53ec6ee1b date=20181227223754
[FHIR] FhirVersion=3.0.1.11917 version=3.0.1 revision=11917 date=20170419074443