         static let birthDate = "birthDate"
         static let heightInMeters = "heightInMeters"
         static let sexInBoolean = "sexInBoolean"
-        static let bloodPressureMeasurements = "bloodPressureMeasurements"
+        static let bloodPressureMeasurementsSorted = "bloodPressureMeasurementsSorted"
     }
     
     // Create a new patient

            birthDate: birthDate,
            heightInMeters: heightInMeters,
            sex: sex,
            bloodPressureMeasurements: bloodPressureMeasurements
        )
    }
}

    var birthDate: Date
    var heightInMeters: Float
    private var sexInBoolean: Bool
    private var bloodPressureMeasurementsSorted: [BloodPressureMeasurement]
    public var bloodPressureMeasurements: [BloodPressureMeasurement] {
        get {
            return self.bloodPressureMeasurementsSorted
        }
        
        set(newBloodPressureMeasurements) {
            self.bloodPressureMeasurementsSorted = newBloodPressureMeasurements.sorted {
                return $0.measurementDate < $1.measurementDate
            }
        }
    }
    
    public var sex: Patient.Sex {
        get {
