-
Notifications
You must be signed in to change notification settings - Fork 0
/
Profile.m
47 lines (38 loc) · 859 Bytes
/
Profile.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// Profile.m
// EHR
//
// Created by Paweł Smoczyk on 11-04-29.
// Copyright 2011 __MyCompanyName__. All rights reserved.
//
#import "Profile.h"
#import "Medication.h"
#import "Result.h"
@implementation Profile
@dynamic gender;
@dynamic bloodType;
@dynamic birthDate;
@dynamic guid;
@dynamic name;
@dynamic results;
@dynamic medications;
#pragma mark Mappable methods
+ (NSString*)primaryKeyProperty {
return @"guid";
}
+ (NSDictionary*)elementToPropertyMappings {
return [NSDictionary dictionaryWithKeysAndObjects:
@"id", @"guid",
@"name", @"name",
@"birth_date", @"birthDate",
@"blood_type", @"bloodType",
@"gender", @"gender",
nil];
}
+ (NSDictionary*)elementToRelationshipMappings {
return [NSDictionary dictionaryWithKeysAndObjects:
@"results", @"results",
@"medications", @"medications",
nil];
}
@end