Skip to content

Instantly share code, notes, and snippets.

@NSAmit
Created March 20, 2019 11:56
Show Gist options
  • Save NSAmit/cbd0c9a237aa8d85b0686043df4c5e9f to your computer and use it in GitHub Desktop.
Save NSAmit/cbd0c9a237aa8d85b0686043df4c5e9f to your computer and use it in GitHub Desktop.
// MARK: LabResult
struct ReferenceRange:Codable {
let low:ValueQuantity
let high:ValueQuantity
let text:String
}
struct ValueQuantity:Codable {
let code:String
let system:String
let value:Double
let unit:String
}
struct LabResult:Codable {
let id: String
let resourceType:String
let category:CodeableConcept
let issued:String
let status:String
let code:CodeableConcept
let referenceRange:[ReferenceRange]
let valueQuantity:ValueQuantity
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment