FM2-136 : Fhir appointment resource initial implementation#29
FM2-136 : Fhir appointment resource initial implementation#29jecihjoy wants to merge 3 commits intoBahmni:masterfrom
Conversation
… provider and appointment provider
…nd AppointmentServiceDefinition
|
|
||
| <groupId>org.openmrs.module</groupId> | ||
| <artifactId>fhir2-appointment-api</artifactId> | ||
| <version>${openmrsModuleFhirVersion}</version> |
There was a problem hiding this comment.
Shouldn't the version here inherit from the parent module, i.e., be tied to the Bahmni appointment module version rather than the FHIR module version?
| <plugin> | ||
| <groupId>com.mycila</groupId> | ||
| <artifactId>license-maven-plugin</artifactId> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok-maven-plugin</artifactId> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>net.revelc.code.formatter</groupId> | ||
| <artifactId>formatter-maven-plugin</artifactId> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>net.revelc.code</groupId> | ||
| <artifactId>impsort-maven-plugin</artifactId> | ||
| </plugin> |
There was a problem hiding this comment.
While we use these plugins inside the FHIR2 module, I'd hesitate about using them here, since they aren't defined in the parent POM, so they're missing all the configuration we do. Also, that configuration may not align with Bahmni's coding standards.
| </dependency> | ||
| <dependency> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> |
There was a problem hiding this comment.
You should define a version here, since Lombok isn't defined in the parent POM.
| @Primary | ||
| @Component | ||
| @Transactional | ||
| @Setter(AccessLevel.PACKAGE) |
There was a problem hiding this comment.
This isn't doing anything here if you define the setters (which is fine).
| @Setter(AccessLevel.PACKAGE) | ||
| public class FhirBahmniAppointmentServiceImpl implements FhirAppointmentService { | ||
|
|
||
| @Autowired |
There was a problem hiding this comment.
If you have setters defined, I would put the @Autowired annotation on them, rather than relying on field annotation.
| <openmrsAtomfeedVersion>2.5.6</openmrsAtomfeedVersion> | ||
| <atomfeed.version>1.9.4</atomfeed.version> | ||
| <lombokVersion>1.18.10</lombokVersion> | ||
| <openmrsModuleFhirVersion>1.0.0-SNAPSHOT</openmrsModuleFhirVersion> |
There was a problem hiding this comment.
This property probably belongs in the submodule rather than here.
| <jacocoVersion>0.7.9</jacocoVersion> | ||
| <openmrsAtomfeedVersion>2.5.6</openmrsAtomfeedVersion> | ||
| <atomfeed.version>1.9.4</atomfeed.version> | ||
| <lombokVersion>1.18.10</lombokVersion> |
There was a problem hiding this comment.
This property probably belongs in the submodule rather than here.
| <require_module version="${openmrsAtomfeedVersion}">org.ict4h.openmrs.openmrs-atomfeed</require_module> | ||
| </require_modules> | ||
|
|
||
| <aware_of_modules> |
There was a problem hiding this comment.
We need to add to this:
<conditionalResources>
<conditionalResource>
<path>/lib/fhir2-appointment-api-${project.parent.version}.jar</path>
<loadIfModulesPresent>
<openmrsModule>
<moduleId>org.openmrs.module.fhir2</moduleId>
<version>1.*</version>
</openmrsModule>
</loadIfModulesPresent>
</conditionalResource>
</conditionalResources>So that the FHIR-specific stuff is only loaded if the FHIR module is present.
There was a problem hiding this comment.
First, you will have to upgrade the config.xml DTD file version from 1.2 to 1.6
Either this
<!DOCTYPE module PUBLIC "-//OpenMRS//DTD OpenMRS Config 1.0//EN"
"https://resources.openmrs.org/doctype/config-1.6.dtd">or
<module configVersion="1.6">
This is because loadIfModulesPresent was introduced in version 1.6 Also, conditionalResources
| @Autowired | ||
| AppointmentServiceDefinitionService appointmentServiceDefinitionService; | ||
|
|
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
|
| import org.openmrs.module.fhir2.FhirConstants; | ||
|
|
||
| @NoArgsConstructor | ||
| public class AppointmentFhirConstants extends FhirConstants { |
There was a problem hiding this comment.
Why do you need to extend FhirConstants and you already have fhir2-api as a dependency?
|
@corneliouzbett Feel free to close PR FM2-136 , I hope we also need to back up with other sub tickets, i mean other sub tickets should be pushed in reference to this ticket in bamnhi not on openmrs right? |
yes @sherrif10 all appointment translations logic were supposed to be done against this repository, do you wish to join efforts so that we can work on this together? |
|
Sure thanks, I will be commiting other pull request regarding appointment
…On Thu, Feb 4, 2021, 1:28 PM jecihjoy ***@***.***> wrote:
@corneliouzbett <https://github.com/corneliouzbett> Feel free to close PR
FM2-136 , I hope we also need to back up with other sub tickets, i mean
other sub tickets should be pushed in reference to this ticket in bamnhi
not on openmrs right?
yes @sherrif10 <https://github.com/sherrif10> all appointment
translations logic were supposed to be done against this repository, do you
wish to join efforts so that we can work on this together?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#29 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALOKS6HBDZ7WVT4LLICXYGDS5JZGDANCNFSM4MMJ53WA>
.
|
Update module group id for kenyaemr form
Implemented translations for the following properties
This PR is linked to this ticket https://issues.openmrs.org/projects/FM2/issues/FM2-136