kopia lustrzana https://github.com/vitorpamplona/amethyst
Improves rendering of prescriptions
rodzic
9f4a30657b
commit
7f35d7d416
|
@ -4440,7 +4440,7 @@ fun RenderEyeGlassesPrescription(
|
|||
modifier =
|
||||
Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(Size10dp),
|
||||
.padding(horizontal = Size10dp),
|
||||
) {
|
||||
val rightEye = visionPrescription.lensSpecification.firstOrNull { it.eye == "right" }
|
||||
val leftEye = visionPrescription.lensSpecification.firstOrNull { it.eye == "left" }
|
||||
|
@ -4485,12 +4485,11 @@ fun RenderEyeGlassesPrescription(
|
|||
HorizontalDivider(thickness = DividerThickness)
|
||||
}
|
||||
|
||||
Spacer(DoubleVertSpacer)
|
||||
|
||||
visionPrescription.prescriber?.reference?.let {
|
||||
val practitioner = findReferenceInDb(it, db) as? Practitioner
|
||||
|
||||
practitioner?.name?.firstOrNull()?.assembleName()?.let {
|
||||
Spacer(DoubleVertSpacer)
|
||||
Text(
|
||||
text = "Signed by: $it",
|
||||
modifier = Modifier.padding(4.dp).fillMaxWidth(),
|
||||
|
|
Ładowanie…
Reference in New Issue