From 9698b56582959bd7dd8f8099d15c4ecd4dd103b9 Mon Sep 17 00:00:00 2001 From: TheMoonThatRises <58153205+TheMoonThatRises@users.noreply.github.com> Date: Fri, 16 Aug 2024 21:07:20 -0600 Subject: [PATCH] make healthImmunizationListing id + eq --- .../StudentVue/SOAPApi/Models/StudentHealthInfo.swift | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Sources/StudentVue/SOAPApi/Models/StudentHealthInfo.swift b/Sources/StudentVue/SOAPApi/Models/StudentHealthInfo.swift index 5cc64ec..2b410d7 100644 --- a/Sources/StudentVue/SOAPApi/Models/StudentHealthInfo.swift +++ b/Sources/StudentVue/SOAPApi/Models/StudentHealthInfo.swift @@ -63,3 +63,13 @@ extension StudentVueApi.StudentHealthInfo { self = try XMLHash.parse(soapString: string).value() } } + +extension StudentVueApi.HealthImmunizationListing: Identifiable, Equatable { + public var id: String { + accessGU + } + + public static func == (lhs: StudentVueApi.HealthImmunizationListing, rhs: StudentVueApi.HealthImmunizationListing) -> Bool { + lhs.id == rhs.id + } +}