// // RiskAssessment3.swift // // Generated by openapi-generator // https://openapi-generator.tech // import Foundation #if canImport(AnyCodable) import AnyCodable #endif public struct RiskAssessment3: Codable, Hashable { public enum DownsScreeningProbabilityAssessment: String, Codable, CaseIterable { case high = "high" case low = "low" } public var modifiedTime: Date? public var author: HealthCareOrganization? public var dirty: Bool? public var doubleTestCompleted: Bool? public var doubleTestCompletedDate: Date? public var firstTrimesterUltrasoundScanOfFetusCompleted: Date? public var downsScreeningProbabilityAssessment: DownsScreeningProbabilityAssessment? public init(modifiedTime: Date? = nil, author: HealthCareOrganization? = nil, dirty: Bool? = nil, doubleTestCompleted: Bool? = nil, doubleTestCompletedDate: Date? = nil, firstTrimesterUltrasoundScanOfFetusCompleted: Date? = nil, downsScreeningProbabilityAssessment: DownsScreeningProbabilityAssessment? = nil) { self.modifiedTime = modifiedTime self.author = author self.dirty = dirty self.doubleTestCompleted = doubleTestCompleted self.doubleTestCompletedDate = doubleTestCompletedDate self.firstTrimesterUltrasoundScanOfFetusCompleted = firstTrimesterUltrasoundScanOfFetusCompleted self.downsScreeningProbabilityAssessment = downsScreeningProbabilityAssessment } public enum CodingKeys: String, CodingKey, CaseIterable { case modifiedTime case author case dirty case doubleTestCompleted case doubleTestCompletedDate case firstTrimesterUltrasoundScanOfFetusCompleted case downsScreeningProbabilityAssessment } // Encodable protocol methods public func encode(to encoder: Encoder) throws { var container = encoder.container(keyedBy: CodingKeys.self) try container.encodeIfPresent(modifiedTime, forKey: .modifiedTime) try container.encodeIfPresent(author, forKey: .author) try container.encodeIfPresent(dirty, forKey: .dirty) try container.encodeIfPresent(doubleTestCompleted, forKey: .doubleTestCompleted) try container.encodeIfPresent(doubleTestCompletedDate, forKey: .doubleTestCompletedDate) try container.encodeIfPresent(firstTrimesterUltrasoundScanOfFetusCompleted, forKey: .firstTrimesterUltrasoundScanOfFetusCompleted) try container.encodeIfPresent(downsScreeningProbabilityAssessment, forKey: .downsScreeningProbabilityAssessment) } }