Releases: dcarbone/php-fhir
v2.0.8: Decimal precision backport
The v3.x development addressed an where decimal precision was not retained between unserialization -> serialization. This release backports that fix into the v2.x series of releases.
v2.0.7: Error handling improvements
Improves compatibility with external libraries and frameworks by no longer globally forcing errors to exceptions.
v2.0.5: Base64Binary bugfix
A template syntax error caused the _writeToFile
method present on FHIRBase64Binary
to be commented out. This has been corrected.
v2.0.4: Basic validation
All types now have basic validation methods _getValidationErrors()
and _getValidationRules()
. These are based on constraints found in parsing the definition xsd's, and should only be used as guide as many providers deviate from the spec constraints.
v2.0.3: JSON Unmarshalling and Marshalling improvements
- Types that have
{name}
and_{name}
entries in their json representation will now be constructed if either / or are present. - Class properties that are not FHIR values are
private
once again - The JSON portion of the generated phpunit tests now assert equivalency between the original representation and the re-encoded version after going through the unmarshal -> marshal routine
- Constructors are now a little bit cleaner, and hopefully easier to read.
- Minor other improvements.
v2.0.2: DSTU1 and DSTU2 improvements
Some minor improvements focused at DSTU1 and DSTU2 types that extend primitive types
v2.0.1: Serialization and construction improvements
This release addresses a few issues with xml serialization and unserialization for primitive types and primitive type extensions.
v2.0.0: Serialization and primitive improvements.
This released introduces a new scheme for -list
and -primitive
types, whereby they are now allowed to extend other primitive classes per their definition in the FHIR specification.
This means that all -list
type classes have moved out of the base namespace and into a sub-namespace under the name of the primitive they are extending. This is the primary reason that this is a major release rather than a minor.
There has also been work on changing how the primitive validation system works. Now, all properties on any type can have validation clauses. This work has not been finished yet, and I am targeting it for the next point release.
There has also been work on improving the json and xml serialization output, specially around how "value container" types are handled. Hopefully the current result is universally acceptable to implementors of this library.
v1.0.5: Lifecycle improvements
This release includes:
- Support for
fhir_comments
arrays during json serialization and unserialization - Improved support for "value container" types during json and xml serialization and unserialization.
v1.0.4: Autoloader Bugfix
The initial implementation of the Autoloader used class_exists
for interfaces and traits, that has been corrected with this release.