Skip to content

Commit

Permalink
Last Missing Date
Browse files Browse the repository at this point in the history
  • Loading branch information
PSchmiedmayer committed Dec 10, 2023
1 parent 63d2e91 commit cd37a2f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/SpeziFHIR/FHIRResource/FHIRResource.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ public struct FHIRResource: Sendable, Identifiable, Hashable {
return procedure.performed?.date
case let patient as ModelsR4.Patient:
return try? patient.birthDate?.value?.asNSDate()
case let provenance as ModelsR4.Provenance:
return try? provenance.recorded.value?.asNSDate()
case let supplyDelivery as ModelsR4.SupplyDelivery:
return supplyDelivery.occurrence?.date
default:
Expand Down

0 comments on commit cd37a2f

Please sign in to comment.