File tree 7 files changed +23
-15
lines changed
7 files changed +23
-15
lines changed Original file line number Diff line number Diff line change @@ -146,6 +146,8 @@ public struct PCKCarePlan: PCKVersionable {
146
146
public static func copyValues( from other: PCKCarePlan , to here: PCKCarePlan ) throws -> Self {
147
147
var here = here
148
148
here. copyVersionedValues ( from: other)
149
+ here. previousVersionUUIDs = other. previousVersionUUIDs
150
+ here. nextVersionUUIDs = other. nextVersionUUIDs
149
151
here. patient = other. patient
150
152
here. title = other. title
151
153
return here
Original file line number Diff line number Diff line change @@ -175,16 +175,18 @@ public struct PCKContact: PCKVersionable {
175
175
}
176
176
177
177
public static func copyValues( from other: PCKContact , to here: PCKContact ) throws -> Self {
178
- var copy = here
179
- copy. copyVersionedValues ( from: other)
180
- copy. address = other. address
181
- copy. category = other. category
182
- copy. title = other. title
183
- copy. name = other. name
184
- copy. organization = other. organization
185
- copy. role = other. role
186
- copy. carePlan = other. carePlan
187
- return copy
178
+ var here = here
179
+ here. copyVersionedValues ( from: other)
180
+ here. previousVersionUUIDs = other. previousVersionUUIDs
181
+ here. nextVersionUUIDs = other. nextVersionUUIDs
182
+ here. address = other. address
183
+ here. category = other. category
184
+ here. title = other. title
185
+ here. name = other. name
186
+ here. organization = other. organization
187
+ here. role = other. role
188
+ here. carePlan = other. carePlan
189
+ return here
188
190
}
189
191
190
192
public static func copyCareKit( _ contactAny: OCKAnyContact ) throws -> PCKContact {
Original file line number Diff line number Diff line change @@ -161,7 +161,8 @@ public struct PCKHealthKitTask: PCKVersionable {
161
161
public static func copyValues( from other: PCKHealthKitTask , to here: PCKHealthKitTask ) throws -> PCKHealthKitTask {
162
162
var here = here
163
163
here. copyVersionedValues ( from: other)
164
-
164
+ here. previousVersionUUIDs = other. previousVersionUUIDs
165
+ here. nextVersionUUIDs = other. nextVersionUUIDs
165
166
here. impactsAdherence = other. impactsAdherence
166
167
here. instructions = other. instructions
167
168
here. title = other. title
Original file line number Diff line number Diff line change @@ -161,7 +161,9 @@ public struct PCKOutcome: PCKVersionable {
161
161
162
162
public static func copyValues( from other: PCKOutcome , to here: PCKOutcome ) throws -> Self {
163
163
var here = here
164
- here. copyCommonValues ( from: other)
164
+ here. copyVersionedValues ( from: other)
165
+ here. previousVersionUUIDs = other. previousVersionUUIDs
166
+ here. nextVersionUUIDs = other. nextVersionUUIDs
165
167
here. taskOccurrenceIndex = other. taskOccurrenceIndex
166
168
here. values = other. values
167
169
here. task = other. task
Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ public struct PCKPatient: PCKVersionable {
142
142
public static func copyValues( from other: PCKPatient , to here: PCKPatient ) throws -> Self {
143
143
var here = here
144
144
here. copyVersionedValues ( from: other)
145
+ here. previousVersionUUIDs = other. previousVersionUUIDs
146
+ here. nextVersionUUIDs = other. nextVersionUUIDs
145
147
here. name = other. name
146
148
here. birthday = other. birthday
147
149
here. sex = other. sex
Original file line number Diff line number Diff line change @@ -158,7 +158,8 @@ public struct PCKTask: PCKVersionable {
158
158
public static func copyValues( from other: PCKTask , to here: PCKTask ) throws -> PCKTask {
159
159
var here = here
160
160
here. copyVersionedValues ( from: other)
161
-
161
+ here. previousVersionUUIDs = other. previousVersionUUIDs
162
+ here. nextVersionUUIDs = other. nextVersionUUIDs
162
163
here. impactsAdherence = other. impactsAdherence
163
164
here. instructions = other. instructions
164
165
here. title = other. title
Original file line number Diff line number Diff line change @@ -50,8 +50,6 @@ extension PCKVersionable {
50
50
mutating public func copyVersionedValues( from other: Self ) {
51
51
self . effectiveDate = other. effectiveDate
52
52
self . deletedDate = other. deletedDate
53
- self . previousVersionUUIDs = other. previousVersionUUIDs
54
- self . nextVersionUUIDs = other. nextVersionUUIDs
55
53
self . copyCommonValues ( from: other)
56
54
}
57
55
}
You can’t perform that action at this time.
0 commit comments