Skip to content

Releases

Better Depth Tracking & Date Parsing

Choose a tag to compare

@p2-apple p2-apple released this 30 Oct 09:00
  • Reverse course and replace FHIRDecodingDepthTracker with JSONDecoder.maxFHIRModelsDepth. There now is on-by-default depth tracking, see FHIRDecodingDepth.swift, implemented on top of Decoder. Thanks to Lukas Kollmer for the analysis and proposal in #45
  • Lower the deployment target back to iOS 15 / macOS 12 / watchOS 8 / tvOS 15, since dropping the custom depth tracker removed the OSAllocatedUnfairLock dependency that had raised it in 0.9.2 (resolves #44)
  • Implement a custom, specialized, performance & safety -optimized date/time parser

Base64Binary & Linux fixes

Choose a tag to compare

@p2-apple p2-apple released this 09 Jun 13:28
  • Make it compile on Linux again (resolves #43, thanks for the report Shinren Pan)
  • Fix Base64Binary, which didn't properly decode arbitrary Data

0.9.2

Choose a tag to compare

@p2-apple p2-apple released this 02 Jun 14:05
  • Make ValueX-decoding resistant to null values (now actually resolves #39, thanks for the report Harsh Surati)
  • Implement a decoding depth counter through FHIRDecodingDepthTracker and provide a default implementation that throws when exceeding 64 levels. This is an arbitrary limit but is conceivably high enough to accommodate any FHIR payload. It can only be enforced if the user uses our provided JSONDecoder.fhirModelsReadyDecoder, see how to instantiate FHIR resources. Because we use OSAllocatedUnfairLock this bumps the required OS versions for this repository
  • Other improvements, such as better reporting of the coding path when no ValueX is provided but one is required

0.9.1

Choose a tag to compare

@p2-apple p2-apple released this 08 May 10:02
  • Fix broken DSTU2 models (all BackboneElement types were reduced to typealiases)
  • Memory improvements (by targeted indirect enum / indirect case use)

The Sendable Release

Choose a tag to compare

@p2-apple p2-apple released this 14 Apr 08:33
  • BREAKING CHANGES, The Sendable Release: makes all types adopt Swift Sendable, which means:
    • All types are now structs, all abstract types protocols. Resources and elements used to be open class and are now public struct
    • The initializers and Codable interfaces didn't change, depending on how "FHIRModels" is used in your projects there may be zero to lots of adjustments necessary
    • The top level FHIRType protocol is now Sendable
    • Abstract types, including but not exclusively Resource and DomainResource, can no longer be instantiated (and probably never needed to be), and FHIRAbstractResource has been removed
    • Specialized elements such as Age, Count, Distance, and Duration are mere typealiases of Quantity
    • Since the FHIR data models define recursive structures (e.g. "Patient" -> "Identifier" -> "Reference" -> "Identifier" -> ...), all-struct doesn't work in Swift. To work around this cyle, Identifier and Reference are now final class, Sendable
    • The second infinite loop is around ResourceProxy and Bundle. To break this cycle, ResourceProxy.bundle is now a indirect case
    • This finally addresses #26
    • Bump Swift tools version to 6.2
  • Update build models to 6.0.0-ballot4 (http://build.fhir.org/)

0.8.0

Choose a tag to compare

@p2-apple p2-apple released this 23 Mar 22:00

Full Changelog: 0.7.0...0.8.0

0.7.0

Choose a tag to compare

@p2-apple p2-apple released this 14 May 14:26
  • Make most primitive types (such as FHIRBool and FHIRDateComponents) Sendable
  • Address #36
  • Fix time zone description that's off for dates in timezone with DST. Fixes #35
  • Bump Swift tools version to 5.7

Full Changelog: 0.6.1...0.7.0

0.6.1

Choose a tag to compare

@p2-apple p2-apple released this 07 Jan 16:06

Update build to R6 ballot 2

Choose a tag to compare

@p2-apple p2-apple released this 24 Oct 09:46

Update build models to 6.0.0-ballot2

Add R5 and R4B models

Choose a tag to compare

@p2-apple p2-apple released this 01 Apr 05:36

This release adds modules for the recently published FHIR R5 (5.0.0) release and the previous FHIR R4B (4.3.0) release. These can be accessed using import ModelsR5 and import ModelsR4B, respectively.