-
Notifications
You must be signed in to change notification settings - Fork 23
BAH-4335 | Create an imaging study for each order #49
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
Conversation
pacs-integration-webapp/.DS_Store
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pls update the .gitignore to not include these files
| String studyInstanceUID, | ||
| String description) { | ||
|
|
||
| if (studyInstanceUID == null || studyInstanceUID.trim().isEmpty()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
StringUtils.isNotBlank() can be used
| order.requested.location.attribute.name=REQUESTED_LOCATION | ||
| order.requested.location.attribute.name=REQUESTED_LOCATION | ||
|
|
||
| create.imagingstudy.enabled=true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Default should be false, here as well
📋 Summary
This PR adds support for creating FHIR ImagingStudy resources in OpenMRS when radiology orders are processed through the PACS integration service. The feature is configurable and can be enabled/disabled via configuration.
🚀 Key Features Added
1. FHIR ImagingStudy Support
ImagingStudyServiceandImagingStudyServiceImplfor managing ImagingStudy creationImagingStudyMapperto map PACS orders to FHIR ImagingStudy format2. New Files Added
FHIR Contract Models:
FhirImagingStudy.java- Main FHIR ImagingStudy resource modelFhirIdentifier.java- FHIR identifier structureFhirReference.java- FHIR reference structureServices:
ImagingStudyService.java- Service interface for ImagingStudy operationsImagingStudyServiceImpl.java- Implementation of ImagingStudy serviceMappers:
ImagingStudyMapper.java- Maps order data to FHIR ImagingStudy format3. Enhanced Existing Services
PacsIntegrationService:
OpenMRSService:
4. Configuration Support
Properties Added:
create.imagingstudy.enabled- Feature toggle for ImagingStudy creationorder.requested.location.attribute.name- Configures location attribute nameFiles Updated:
application.properties- Added local development configurationapplication.properties.template- Added Docker deployment configuration with environment variable support (${CREATE_IMAGING_STUDY_ENABLED})5. Dependency Updates
🔧 Configuration
Environment Variables
CREATE_IMAGING_STUDY_ENABLED- Set totrueorfalseto enable/disable the feature (defaults tofalseif not set)Docker Compose Example
📝 Technical Details
Integration Flow
create.imagingstudy.enabled=true: