Skip to content
This repository has been archived by the owner on Jan 16, 2024. It is now read-only.

Autofill ClientPatientID field in Sample Add form when Patient defined #131

Merged
merged 2 commits into from
Aug 14, 2019

Conversation

xispa
Copy link
Member

@xispa xispa commented Aug 13, 2019

Description of the issue/feature this PR addresses

Requires: senaite/senaite.core#1424

Fill the ClientPatientID field (from "Add Sample" form) when the user clicks the button Add Sample from inside Patient context.

Current behavior before PR

Although other fields are automatically filled (e.g. Patient or Clinical Case), field ClientPatientID remains empty.

Desired behavior after PR is merged

Field ClientPatientID in "Add Sample" form is filled automatically after "Add sample" button is clicked from inside Patient context

Captura de 2019-08-14 01-44-12

--
I confirm I have tested this PR thoroughly and coded it according to PEP8
and Plone's Python styleguide standards.

xispa added 2 commits August 14, 2019 01:39
Fill the ClientPatientID field when the user clicks the button Add Sample
from inside Patient context
Copy link

@Espurna Espurna left a comment

Choose a reason for hiding this comment

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

Creating a Sample from a Patient View, fills the "Client Patient ID" with the Patient's name instead of the correct "Client Patient ID" value.

@xispa
Copy link
Member Author

xispa commented Aug 14, 2019

Creating a Sample from a Patient View, fills the "Client Patient ID" with the Patient's name instead of the correct "Client Patient ID" value.

This is covered in senaite/senaite.core#1424

@Espurna Espurna merged commit 45d8be5 into master Aug 14, 2019
@xispa xispa deleted the autofill-clientpatient-id branch August 14, 2019 15:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

Successfully merging this pull request may close these issues.

2 participants