Breaking
- FHIR R4B release has been replaced from R4. See changes (Release R4B: May 28, 2022) http://hl7.org/fhir/R4B/history.html. More detail at http://hl7.org/fhir/R4B/diff.html
Improvements
- Issue #90 logging level downgraded from warning to debug.
Bugfixes
- Fix, primitive extension was not included if primitive field value is null. [nazrulworld]
- Issue #101 ElementDefinition.id typing is incorrect
Improvements
- Issue #97 Now null value accepted as a member of String List.
- Primitive DataType Ùrl` is now accepting relative path.
Breaking
Element.id
&Resource.id
don't have any extension. See https://chat.fhir.org/#narrow/stream/179166-implementers/topic/Resource.2Eid.20and.20primitive.20extension.
- Issue #96, fixes datetime's ISO format representation for YAML. [nazrulworld]
- Issues #89 & #90 possible breaking for
FHIRAbstractModel.dict
(if pydnatic specific extra argument has been provided) is neutralized.[nazrulworld]
Bugfixes
- Issue #88 fixes typo mistake. Resource name const was wrong. [nazrulworld]
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
loader
class. - 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
STU3
andDSTU2
.
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_property
field attribute for classFHIRPrimitiveExtension
.
- Breaking/Fixes: PR#48
Resource.id
type has been replaced withfhirtypes.Id
fromfhirtypes.String
(only for R4) [ItayGoren] - Fixes: constraints regex for fhirtypes
Id
,Code
,Integer
,Decimal
,UnsignedInt
,PositiveInt
and so on. [nazrulworld]
- Issue #21 Remaining resources are added. [iatechicken]
- Fixes: wrong
ClaimResponseAddItemAdjudicationType
resource type name intoDTSU2
.
Improvements
FHIRAbstractModel::add_root_validator
is 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
simplejson
is available automatically (depends on importable) along side withorjson
and defaultjson
library. Order of json serializer available (orjson -> simplejson(as fallback) -> json(as default)).
Breaking
orjson
is not available by default, have to use extra_requireorjson
to available that.
pydantic
minimum 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
pydantic
version between1.6.x
and1.7.x
[nazrulworld]
Improvements
Improvements
FHIRAbstractModel::json
now 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_comments
is 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_comments
value. [nazrulworld] - More FHIR DSTU2 resources have been added. [Itay Goren]
Improvements
visionprescription
andsupplyrequest
resources added for DSTU2 [iatechicken]
Fixes
Improvements
- orjson_ supports have been available as default json
dumps
andloads
for Model. FHIRAbstractModel::get_json_encoder
class 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_type
class method now available, which returning name of the resource.
FHIRAbstractModel::element_properties
class 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
STU3
release version upgraded from3.0.1
to3.0.2
, Please find changes history here https://www.hl7.org/fhir/history.html. - FHIR
R4
release version upgraded from4.0.0
to4.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_name
refers 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.0b1
section.
[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