RippleOSI / Ripple-Showcase-Stack-Project

repo for Showcase Stack (PulseTile+ QEWDjs + EtherCIS) - Project issues
Apache License 2.0
0 stars 0 forks source link

Low: Patient Summary Address #46

Closed PhilBarrett closed 5 years ago

PhilBarrett commented 5 years ago

It looks like the address is in a different DIV to the patient name, but I’m not sure why this is.

In some cases the patient’s doctor is displayed immediately below the name, however when this is blank, it creates a large space which increases the height of the patient summary unnescessarily.

Screen Shot 2019-05-30 at 15.20.14.png I would suggest moving the address to immediately follow the patient’s doctor on a new line.

Screen Shot 2019-05-30 at 15.20.19.png

BogdanScherban commented 5 years ago

@simongamester

Address line was located in the separate div below, to give possibility to locate doctor info below the patient name.

Or you suggest to locate patient name, doctor and address in one div (vertical direction)?

simongamester commented 5 years ago

That's correct. All 3 fields would be within the same div. If doctor is not provided however, the address would automatically fall directly underneath the patient name.

BogdanScherban commented 5 years ago

OK, I need in 0.5 h for this issue.

kuvakina commented 5 years ago

@tony-shannon @PhilBarrett @simongamester

Bogdan changed it: sss11.png

simongamester commented 5 years ago

@PhilBarrett Do we have an example of a patient with a doctor? Would be worth testing this before signing this off.

PhilBarrett commented 5 years ago

@tony-shannon if it's been taken from NES work, I don't believe Doctor is in the address, so would need adding in to check

kuvakina commented 5 years ago

Sorry, @PhilBarrett @simongamester could we consider this task as done?

simongamester commented 5 years ago

Could @BogdanScherban send a screen with the Doctor field populated please? We have no way of confirming this field is being displayed correctly as none of the users in the showcase system have the Doctor field. A screenshot taken from dev would suffice.

BogdanScherban commented 5 years ago

@simongamester

Simon, doctor field was presented in the old Showcase (with ReactJS). It was possible, because server side returned infor about doctor: Screenshot from 2019-06-05 11-39-06.png

But in Showcase-RA we use other request for user information, and doctor's info is absent here generally: Screenshot from 2019-06-05 11-39-34.png

For this reason I can't display info about doctor.

But I changed structure of this block according to your suggestion: https://github.com/PulseTile/PulseTile-RA/blob/b8f13b912114f1aa50b67e45aab776827ddf7940/src/core/common/Topbar/fragments/PatientBanner.js#L26

simongamester commented 5 years ago

Thanks @BogdanScherban

For the purposes of testing, I'd like to see this field displayed on the screen, so could you tweak your local copy temporarily so the doctor code block is called?

If you add a line below here, for example:

https://github.com/PulseTile/PulseTile-RA/blob/b8f13b912114f1aa50b67e45aab776827ddf7940/src/core/common/Topbar/fragments/PatientBanner.js#L23

Which manually overrides the 'doctor' variable so calls the doctor to be displayed:

Something like: doctor = 'Daniels Yvonne C.';

Then run the code, take a screenshot and remove the changes.

BogdanScherban commented 5 years ago

@simongamester OK, I added doctor (for test)

Screenshot from 2019-06-05 13-36-54.png

simongamester commented 5 years ago

Thanks @BogdanScherban that looks fine to me.

@PhilBarrett this is done.