This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Idat.java
61 lines (49 loc) · 1.47 KB
/
Idat.java
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package org.highmed.mpi.client;
import java.time.format.DateTimeFormatter;
import java.util.Locale;
/**
* Container for all of a subject's identifying data points as consented upon within the German medical informatics
* initiative.
*/
public interface Idat
{
DateTimeFormatter GERMAN_DATE = DateTimeFormatter.ofPattern("dd.MM.yyyy", Locale.GERMANY);
/**
* @return long-term patient identifier used inside the medical data integration center (MeDIC)
*/
String getMedicId();
String getFirstName();
String getLastName();
/**
* @return birthday formated as German date aka yyyy.MM.dd
* @see Idat#GERMAN_DATE
*/
String getBirthday();
/**
* D - diverse (http://fhir.de/CodeSystem/gender-amtlich-de divers)<br>
* F - female (http://hl7.org/fhir/administrative-gender female)<br>
* M - male (http://hl7.org/fhir/administrative-gender male)<br>
* O - other (http://hl7.org/fhir/administrative-gender other)<br>
* U - unknown (http://hl7.org/fhir/administrative-gender unknown)<br>
* X - undefined (http://fhir.de/CodeSystem/gender-amtlich-de unbestimmt)
*
* @return {D, F, M, O, U, X}
*/
String getSex();
/**
* @return street name including street number
*/
String getStreet();
String getZipCode();
String getCity();
/**
* https://en.wikipedia.org/wiki/ISO_3166-2
*
* @return two character code based on ISO 3166-2
*/
String getCountry();
/**
* @return 10 character immutable part of the German eGK number
*/
String getInsuranceNumber();
}