Skip to content

Only emit FHIR basedOn for externally linked service requests#10

Open
nnpvaan wants to merge 2 commits into
masterfrom
i20
Open

Only emit FHIR basedOn for externally linked service requests#10
nnpvaan wants to merge 2 commits into
masterfrom
i20

Conversation

@nnpvaan

@nnpvaan nnpvaan commented Jun 24, 2026

Copy link
Copy Markdown
Collaborator

Description

This PR removes misleading FHIR basedOn references from DiagnosticReport and Observation resources when the sample/analysis request was created directly inside SENAITE.

Current behavior

SENAITE-generated samples still emit basedOn references in diagnostic reports and observations, which makes them appear to originate from an external ServiceRequest even when they were created internally

Desired behavior

basedOn should only be included when the sample is linked to an externally originated FHIR ServiceRequest. For samples created internally in SENAITE, basedOn should be omitted from both DiagnosticReport and Observation

--
I confirm that I have thoroughly tested this Pull Request and that the code
adheres to the PEP 8 and Plone 5 Python style guide standards.

@nnpvaan nnpvaan requested a review from xispa June 24, 2026 08:11
@nnpvaan nnpvaan self-assigned this Jun 24, 2026
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.

1 participant