Code Monkey home page Code Monkey logo

amiko-ios's People

Contributors

b123400 avatar bettar avatar cybermax avatar lgtm-migrator avatar zdavatz avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

amiko-ios's Issues

UISearchBar gets slightly displaced

Importing AMK file from AmiKo iOS into Generika App crashes Generika App

The error is the following:

2018-04-05 21:43:24.192642+0200 generika[29669:1525985] -[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xb0000000000005a3
2018-04-05 21:43:24.197255+0200 generika[29669:1525985] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[__NSCFNumber isEqualToString:]: unrecognized selector sent to instance 0xb0000000000005a3'
*** First throw call stack:
(
	0   CoreFoundation                      0x0000000107b2c1e6 __exceptionPreprocess + 294
	1   libobjc.A.dylib                     0x00000001071c1031 objc_exception_throw + 48
	2   CoreFoundation                      0x0000000107bad784 -[NSObject(NSObject) doesNotRecognizeSelector:] + 132
	3   CoreFoundation                      0x0000000107aae898 ___forwarding___ + 1432
	4   CoreFoundation                      0x0000000107aae278 _CF_forwarding_prep_0 + 120
	5   generika                            0x0000000103065c83 -[ReceiptViewController entriesCountForViewOfField:] + 1555
	6   generika                            0x000000010306410d -[ReceiptViewController layoutFrames] + 1597
	7   generika                            0x0000000103064e3c -[ReceiptViewController viewWillAppear:] + 140
	8   UIKit                               0x0000000104bafdc0 -[UIViewController _setViewAppearState:isAnimating:] + 442
	9   UIKit                               0x0000000104bb062f -[UIViewController __viewWillAppear:] + 131
	10  UIKit                               0x0000000104bf17f3 -[UINavigationController _startTransition:fromViewController:toViewController:] + 817
	11  UIKit                               0x0000000104bf267e -[UINavigationController _startDeferredTransitionIfNeeded:] + 870
	12  UIKit                               0x0000000104bf38cc -[UINavigationController __viewWillLayoutSubviews] + 150
	13  UIKit                               0x0000000104e4bbd7 -[UILayoutContainerView layoutSubviews] + 231
	14  UIKit                               0x0000000104ad5808 -[UIView(CALayerDelegate) layoutSublayersOfLayer:] + 1515
	15  QuartzCore                          0x00000001045cc61a -[CALayer layoutSublayers] + 177
	16  QuartzCore                          0x00000001045d082b _ZN2CA5Layer16layout_if_neededEPNS_11TransactionE + 395
	17  QuartzCore                          0x000000010455729f _ZN2CA7Context18commit_transactionEPNS_11TransactionE + 343
	18  QuartzCore                          0x0000000104584940 _ZN2CA11Transaction6commitEv + 568
	19  QuartzCore                          0x00000001045856be _ZN2CA11Transaction17observer_callbackEP19__CFRunLoopObservermPv + 76
	20  CoreFoundation                      0x0000000107ace607 __CFRUNLOOP_IS_CALLING_OUT_TO_AN_OBSERVER_CALLBACK_FUNCTION__ + 23
	21  CoreFoundation                      0x0000000107ace55e __CFRunLoopDoObservers + 430
	22  CoreFoundation                      0x0000000107ab2b81 __CFRunLoopRun + 1537
	23  CoreFoundation                      0x0000000107ab230b CFRunLoopRunSpecific + 635
	24  GraphicsServices                    0x000000010aac0a73 GSEventRunModal + 62
	25  UIKit                               0x0000000104a060b7 UIApplicationMain + 159
	26  generika                            0x000000010306a97f main + 111
	27  libdyld.dylib                       0x00000001080e9955 start + 1
	28  ???                                 0x0000000000000001 0x0 + 1
)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Importing second prescription from different doctor shows wrong doctor address

I just sent two Emails with attachments to test importing the attachments out of the real Mail App on your iPhone to a...@i..com. Something is still really wrong there. Please test the import of all prescriptions on your real device. Steps to reproduce:

  1. Set doctor address on real device, with selfie. Click save.
  2. Now start importing prescriptions from Mail app from the Mails I just sent (Test Emese and Test Yuka)
  3. The user is not taken to the correct prescription when importing the prescriptions

Email/SMS/Whatsapp/ etc Prescription with ActionSheetSharing

Clicking on Send should save or overwrite the open prescription if it has not yet been saved and then should open the ActionSheet Sharing Options. So clicking on Send will not give you any options to Save as New or overwrite existing. It will do that automatically for you if you have not done it manually before.

Reproducing Crash by deleting all prescriptions and then creating a new one (Save as new).

  1. Select patient A with 3 prescriptions
  2. Open an existing prescription of patient A
  3. Add a package
  4. Click save as new prescription
  5. Delete all 4 prescriptions
  6. Create a new prescription with 2 packages for the same patient A.
  7. Click Save as new prescription
  8. App crashes with below message
2018-03-20 11:54:30.919787+0100 AmiKoDesitin[4142:1627088] Replaced right VC
2018-03-20 11:54:50.496053+0100 AmiKoDesitin[4142:1627088] lastUsedPrescription: RZ_2018-03-20T115428.amk, amkFiles[rowIndex] RZ_2018-03-20T114029.amk
2018-03-20 11:54:53.272085+0100 AmiKoDesitin[4142:1627088] lastUsedPrescription: RZ_2018-03-20T115428.amk, amkFiles[rowIndex] RZ_2018-03-20T115428.amk
2018-03-20 11:55:00.285040+0100 AmiKoDesitin[4142:1627088] long press began on table view at row 8
2018-03-20 11:55:00.292335+0100 AmiKoDesitin[4142:1627088] MLMedication id:2845, regnrs:54268, 55431, 43225 <Orfiril®/- long>
2018-03-20 11:55:04.821240+0100 AmiKoDesitin[4142:1627088] signatureImg {333, 312}
2018-03-20 11:55:04.862946+0100 AmiKoDesitin[4142:1627088] uncaught exception: *** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: patient_id)
2018-03-20 11:55:04.863040+0100 AmiKoDesitin[4142:1627088] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: patient_id)'
*** First throw call stack:
(0x182f63164 0x1821ac528 0x182efbc9c 0x182e30b0c 0x102e96d74 0x102eb21e0 0x18ca26b28 0x18ca27520 0x18c866698 0x18c86a394 0x18c62e87c 0x18c556188 0x18c555afc 0x18c555808 0x18c5558a8 0x186fb6dc4 0x102fd128c 0x102fd5ea0 0x182f0b344 0x182f08f20 0x182e28c58 0x184cd4f84 0x18c5815c4 0x102e9b75c 0x18294856c)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Importing 3 different prescriptions for same patient

  1. Open App
  2. Import Prescription 1 for Patient A.
  3. Import new, different prescription 2 for Patient A.
  4. Import new, different prescription 3 for Patient A.
  5. Create a new prescription for patient A on the Phone by selecting one package. Click Save as New.
  6. Try to reimport prescription 1. App should say that Prescription was already imported and take the User to that prescription that was already imported.

If doctor address is still missing only show Interactions Button

  1. Download App
  2. Got to prescriptions
  3. Add patient
  4. Add package
  5. Save and Send Buttons are not yet enabled as long as the doctor address is not filled and saved in the AmiKo App
  6. Interaction Button has to work if their is more then one package in the prescription

Saving a new AMK File does not save signature.

  1. Open App
  2. Goto Prescription view.
  3. Click new.
  4. Select a patient
  5. Add some packages.
  6. Click save as new.
  7. Swipe right.
  8. Add more packages.
  9. Click Save new again. This should create another AMK file. Now comes the first problem:
  10. The List of AMK files only reloads if you click the "Hamburger". You can test this with a completely new patient.
  11. Signature is lost on all AMK files that where save as "New".

Save Button does not appear after setting/changing sex.

  1. Open App in Simulator
  2. Access iPad address book
  3. Select a person not yet in AmiKo address book like John Appleseed
  4. Set the Sex
  5. "Save Button" is not visible. You first have to click into another mandatory field, to access that button.

Open AMK file from Messages App

Open AMK file from Messages App

  1. Attach file via "Senden" Button
  2. Send AMK File to Mobile number.
  3. Recipient should be able to open the AMK File with Generika or AmiKo App. Probably iOS has to have a filehandler for AMK files set.

Layout is not recalculated

At the moment the layout is not recalculated in the app when changing orientation, unless it's done by the system.

As mentioned by @bettar on 30.3. in the AmiKo-Slack channel:

I have a feeling, that when you rotate the device the TextView is not reloaded, and still thinks it has to stick to the PT mode, but in fact it is in LS mode.

_Save as new_ is only option when swapping patient

  1. Open patient
  2. Select prescription from AMK list
  3. Click patient
  4. Select new patient
  5. Now the User should only have one option: Save as new. There is no use for an option Overwrite prescription, because this is a new prescription for that patient.
  6. Overwrite prescription basically only happens for editing an existing prescription for the same patient. If you swap the patient there is only one option: Save as new.

Overwrite Prescription

  1. Open App
  2. Click prescription
  3. Choose a patient
  4. Swipe to the right
  5. Add a pacakge (Ponstan)
  6. Add another package (Inderal)
  7. Swipe in the Prescription
  8. Click save as New
  9. Select another prescription from another a patient
  10. Add a package
  11. Click `Overwrite Prescription"
  12. Swipe Left to show amk Files. Select the file you overwrote.
  13. Result: added packages are lost and not show. Prescription was not overwritten.

Hash is changed every time you click send Button.

I seems the Hash of the prescription is changed, every time you click the the send Button.

Like this the Generika App imports the same prescription again and again.

  1. Create prescription in AmiKo iOS
  2. Click send
  3. Open in Generika App
  4. Repeat with the same prescription
  5. Same prescription can be imported again

Add comment to Prescription.

Suggestion: Use UITextField

  1. Longtap on Package should give two options
    a) edit Comment b) delete c) Cancel
    a) will open the keyboard so the user can type or dictate with Siri what he wants to say about that package.
    b) will delete that line with the package and the comments.
  2. Text should automatically be saved or like with the Messages App text can be saved by clicking on a small Icon.

One more crash after clicking _New_ in prescription view and adding a new package to a patient.

  1. Open existing patient in prescription view
  2. Click New
  3. Select a patient
  4. Add a package
  5. Click save as new
  6. Crash with below message
2018-03-20 11:40:50.163643+0100 AmiKoDesitin[4133:1620990] Replaced right VC
2018-03-20 11:40:56.793248+0100 AmiKoDesitin[4133:1620990] signatureImg {333, 312}
2018-03-20 11:40:59.706078+0100 AmiKoDesitin[4133:1620990] long press began on table view at row 0
2018-03-20 11:40:59.713204+0100 AmiKoDesitin[4133:1620990] MLMedication id:2437, regnrs:56923 <Minerva®>
2018-03-20 11:41:04.994895+0100 AmiKoDesitin[4133:1620990] signatureImg {333, 312}
2018-03-20 11:41:05.034570+0100 AmiKoDesitin[4133:1620990] uncaught exception: *** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: patient_id)
2018-03-20 11:41:05.034616+0100 AmiKoDesitin[4133:1620990] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSDictionaryM setObject:forKey:]: object cannot be nil (key: patient_id)'
*** First throw call stack:
(0x182f63164 0x1821ac528 0x182efbc9c 0x182e30b0c 0x102bb6d74 0x102bd21e0 0x18ca26b28 0x18ca27520 0x18c866698 0x18c86a394 0x18c62e87c 0x18c556188 0x18c555afc 0x18c555808 0x18c5558a8 0x186fb6dc4 0x102f1928c 0x102f1dea0 0x182f0b344 0x182f08f20 0x182e28c58 0x184cd4f84 0x18c5815c4 0x102bbb75c 0x18294856c)
libc++abi.dylib: terminating with uncaught exception of type NSException
(lldb) 

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.