-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SYNCT-100: Switching on synchronization of nested patient's objects (#…
…137) * SYNCT-100: Added the PERSON_ADDRESS resource and improved the code readability * SYNCT-100: Changed logic used to extract UUID from resource link * SYNCT-100: Changed the sync 2.0 default configuration * SYNCT-100: Added more information to audit log after fail * SYNCT-100: Fixed issue related to updating the voided objects * SYNCT-100: Fixed issue with displaying conflicted fields * SYNCT-100: Changed the Webservices.REST version to the newest * SYNCT-100: Updated the atomfeed version * SYNCT-100: Updated the STOP WORDS list * SYNCT-100: Added support of synchronization PersonName object * SYNCT-100: Added support of synchronization PatientIdentifier objects * SYNCT-100: Added extracting the UUID based on preferred client link * SYNCT-100: Updated the default Sync configuration * SYNCT-100: Fixed issue with displaying the conflicted fields
- Loading branch information
Showing
23 changed files
with
511 additions
and
141 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 6 additions & 5 deletions
11
api/src/main/java/org/openmrs/module/sync2/api/model/audit/AuditMessage.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
65 changes: 37 additions & 28 deletions
65
api/src/main/java/org/openmrs/module/sync2/api/model/enums/Resources.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,43 +1,52 @@ | ||
package org.openmrs.module.sync2.api.model.enums; | ||
|
||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_ALLERGY; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_AUDIT_MESSAGE; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_COHORT; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_DRUG_ORDER; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_ENCOUNTER; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_FORM; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_LOCATION; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_OBSERVATION; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_PATIENT; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_PERSON; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_PRIVILEGE; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_TEST_ORDER; | ||
import static org.openmrs.module.sync2.SyncCategoryConstants.CATEGORY_VISIT; | ||
import org.openmrs.module.sync2.SyncCategoryConstants; | ||
|
||
public enum Resources { | ||
|
||
ALL(""), | ||
PATIENT(CATEGORY_PATIENT), | ||
VISIT(CATEGORY_VISIT), | ||
ENCOUNTER(CATEGORY_ENCOUNTER), | ||
OBSERVATION(CATEGORY_OBSERVATION), | ||
LOCATION(CATEGORY_LOCATION), | ||
PRIVILEGE(CATEGORY_PRIVILEGE), | ||
AUDIT_MESSAGE(CATEGORY_AUDIT_MESSAGE), | ||
PERSON(CATEGORY_PERSON), | ||
ALLERGY(CATEGORY_ALLERGY), | ||
FORM(CATEGORY_FORM), | ||
COHORT(CATEGORY_COHORT), | ||
DRUG_ORDER(CATEGORY_DRUG_ORDER), | ||
TEST_ORDER(CATEGORY_TEST_ORDER); | ||
ALL(SyncCategoryConstants.ALL, SyncCategoryConstants.ALL_LABEL), | ||
PATIENT(SyncCategoryConstants.CATEGORY_PATIENT, SyncCategoryConstants.PATIENT_LABEL), | ||
VISIT(SyncCategoryConstants.CATEGORY_VISIT, SyncCategoryConstants.VISIT_LABEL), | ||
ENCOUNTER(SyncCategoryConstants.CATEGORY_ENCOUNTER, SyncCategoryConstants.ENCOUNTER_LABEL), | ||
OBSERVATION(SyncCategoryConstants.CATEGORY_OBSERVATION, SyncCategoryConstants.OBSERVATION_LABEL), | ||
LOCATION(SyncCategoryConstants.CATEGORY_LOCATION, SyncCategoryConstants.LOCATION_LABEL), | ||
PRIVILEGE(SyncCategoryConstants.CATEGORY_PRIVILEGE, SyncCategoryConstants.PRIVILEGE_LABEL), | ||
AUDIT_MESSAGE(SyncCategoryConstants.CATEGORY_AUDIT_MESSAGE, SyncCategoryConstants.AUDIT_MESSAGE_LABEL), | ||
PERSON(SyncCategoryConstants.CATEGORY_PERSON, SyncCategoryConstants.PERSON_LABEL), | ||
ALLERGY(SyncCategoryConstants.CATEGORY_ALLERGY, SyncCategoryConstants.ALLERGY_LABEL), | ||
FORM(SyncCategoryConstants.CATEGORY_FORM, SyncCategoryConstants.FORM_LABEL), | ||
COHORT(SyncCategoryConstants.CATEGORY_COHORT, SyncCategoryConstants.COHORT_LABEL), | ||
DRUG_ORDER(SyncCategoryConstants.CATEGORY_DRUG_ORDER, SyncCategoryConstants.DRUG_ORDER_LABEL), | ||
TEST_ORDER(SyncCategoryConstants.CATEGORY_TEST_ORDER, SyncCategoryConstants.TEST_ORDER_LABEL), | ||
PERSON_ADDRESS(SyncCategoryConstants.CATEGORY_PERSON_ADDRESS, SyncCategoryConstants.PERSON_ADDRESS_LABEL), | ||
PROVIDER(SyncCategoryConstants.CATEGORY_PROVIDER, SyncCategoryConstants.PROVIDER_LABEL), | ||
PATIENT_PROGRAM(SyncCategoryConstants.CATEGORY_PATIENT_PROGRAM, SyncCategoryConstants.PATIENT_PROGRAM_LABEL), | ||
RELATIONSHIP(SyncCategoryConstants.CATEGORY_RELATIONSHIP, SyncCategoryConstants.RELATIONSHIP_LABEL), | ||
VISIT_TYPE(SyncCategoryConstants.CATEGORY_VISIT_TYPE, SyncCategoryConstants.VISIT_TYPE_LABEL), | ||
USER(SyncCategoryConstants.CATEGORY_USER, SyncCategoryConstants.USER_LABEL), | ||
PROGRAM(SyncCategoryConstants.CATEGORY_PROGRAM, SyncCategoryConstants.PROGRAM_LABEL), | ||
PERSON_NAME(SyncCategoryConstants.CATEGORY_PERSON_NAME, SyncCategoryConstants.PERSON_NAME_LABEL), | ||
PATIENT_IDENTIFIER(SyncCategoryConstants.CATEGORY_PATIENT_IDENTIFIER, SyncCategoryConstants.PATIENT_IDENTIFIER_LABEL); | ||
|
||
private final String name; | ||
|
||
Resources(String name) { | ||
private final String messageKey; | ||
|
||
Resources(String name, String messageKey) { | ||
this.name = name; | ||
this.messageKey = messageKey; | ||
} | ||
|
||
public String getName() { | ||
return this.name; | ||
} | ||
|
||
public String getMessageKey() { | ||
return messageKey; | ||
} | ||
|
||
private static class Constants { | ||
|
||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.