29 lines
574 B
Swift
29 lines
574 B
Swift
//
|
|
// PatientMonthlyHistoryResponse.swift
|
|
// medmap
|
|
//
|
|
|
|
import Foundation
|
|
|
|
struct PatientMonthlyHistoryResponse: Decodable {
|
|
let periodLabel: String
|
|
let selectedDate: String
|
|
let leadingDays: Int
|
|
let adherencePercent: Int
|
|
let takenCount: Int
|
|
let totalCount: Int
|
|
let days: [PatientHistoryDay]
|
|
}
|
|
|
|
struct PatientHistoryDay: Decodable, Identifiable {
|
|
let date: String
|
|
let number: String
|
|
let weekday: String
|
|
let total: Int
|
|
let taken: Int
|
|
let percent: Int
|
|
let tone: String
|
|
let today: Bool
|
|
|
|
var id: String { date }
|
|
} |