Skip to content

Loading Concept Reference Range Configurations #287

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 13, 2025

Conversation

wikumChamith
Copy link
Contributor

@wikumChamith wikumChamith commented Dec 10, 2024

This update adds support for initializing concept reference ranges which was introduced in Platform 2.7.0

@wikumChamith wikumChamith changed the title Loading Concept Reference Range Configurations [Draft ]Loading Concept Reference Range Configurations Dec 10, 2024
@wikumChamith wikumChamith force-pushed the TRUNK-6264 branch 2 times, most recently from 2a87d27 to 98370cf Compare December 11, 2024 11:56
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

class ConceptReferenceRangeLoaderIntegrationTest extends DomainBaseModuleContextSensitiveTest {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this class not public?

@wikumChamith wikumChamith force-pushed the TRUNK-6264 branch 3 times, most recently from 7e979fa to 34a830c Compare December 13, 2024 17:03
@wikumChamith wikumChamith changed the title [Draft ]Loading Concept Reference Range Configurations Loading Concept Reference Range Configurations Dec 20, 2024
Copy link
Member

@mks-d mks-d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@wikumChamith thanks for your initiative and work on this.

Could you however edit your PR description here and detail what this PR brings?

Copy link
Contributor

@Ruhanga Ruhanga left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall, it's looking good @wikumChamith. Just a reminder to conditionally load the api-2.7 packages through the config.xml file in the omod sub-module's resources. Here's another minor concern to consider.

@Component
public class ConceptReferenceRangeLineProcessor extends BaseLineProcessor<ConceptReferenceRange> {

private final String HEADER_CONCEPT_NUMERIC_UUID = "Concept Numeric UUID";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And so on throughout. I think this is more consistent with how things are done:

Suggested change
private final String HEADER_CONCEPT_NUMERIC_UUID = "Concept Numeric UUID";
private final String HEADER_CONCEPT_NUMERIC_UUID = "Concept numeric uuid";

api-2.7/pom.xml Outdated
<artifactId>initializer</artifactId>
<groupId>org.openmrs.module</groupId>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: When referencing external modules, it should be Group-Artifact-Version.

Suggested change
<artifactId>initializer</artifactId>
<groupId>org.openmrs.module</groupId>
<groupId>org.openmrs.module</groupId>
<artifactId>initializer</artifactId>

@wikumChamith
Copy link
Contributor Author

@ibacher, @mks-d, @Ruhanga I updated the PR.

@ibacher
Copy link
Member

ibacher commented Jan 10, 2025

@mks-d Any objection to merging this in?

@ibacher ibacher merged commit 47c39bc into mekomsolutions:main Jan 13, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants