Skip to content

Commit

Permalink
Added NUPI and CWC NUmber Identifier types
Browse files Browse the repository at this point in the history
  • Loading branch information
Ken Omondi authored and Ken Omondi committed Oct 28, 2016
1 parent a5c0288 commit 304d515
Showing 1 changed file with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ public static final class _PatientIdentifierType {
public static final String OLD_ID = Metadata.IdentifierType.OLD;
public static final String OPENMRS_ID = Metadata.IdentifierType.MEDICAL_RECORD_NUMBER;
public static final String PATIENT_CLINIC_NUMBER = Metadata.IdentifierType.PATIENT_CLINIC_NUMBER;
public static final String NATIONAL_UNIQUE_PATIENT_IDENTIFIER = Metadata.IdentifierType.NATIONAL_UNIQUE_PATIENT_IDENTIFIER;
public static final String CWC_NUMBER = Metadata.IdentifierType.CWC_NUMBER;
}

public static final class _PersonAttributeType {
Expand Down Expand Up @@ -120,7 +122,13 @@ public void install() {
install(patientIdentifierType("National ID", "Kenyan national identity card number",
"\\d{5,10}", "Between 5 and 10 consecutive digits", null,
LocationBehavior.NOT_USED, false, _PatientIdentifierType.NATIONAL_ID));

install(patientIdentifierType("National Unique patient identifier", "National Unique patient identifier",
".{1,14}", "At most 14 characters long", null,
LocationBehavior.REQUIRED, false, _PatientIdentifierType.NATIONAL_UNIQUE_PATIENT_IDENTIFIER));
install(patientIdentifierType("CWC Number", "Assigned to a child patient when enrolling into the Child Welfare Clinic (CWC)",
".{1,14}", "Should take the format (CWC-MFL code-serial number) e.g CWC-15007-00001", null,
LocationBehavior.REQUIRED, false, _PatientIdentifierType.CWC_NUMBER));

install(personAttributeType("Telephone contact", "Telephone contact number",
String.class, null, false, 1.0, _PersonAttributeType.TELEPHONE_CONTACT));
install(personAttributeType("Email address", "Email address of person",
Expand Down

0 comments on commit 304d515

Please sign in to comment.