by Till Jannik Plewe, reading time:
The modernization (and thus also the digitization) of the German healthcare system is an ongoing process. One part of this process is the introduction of the E-Rezept”, which shall replace the old paper based prescriptions. Users may get access to the E-Rezept by using the E-Rezept-App on their Android device. In order to fully use the E-Rezept-App the users have to authenticate themselves with their digital identity which is stored on their health card (eGK). This authentication method uses Near Field Communication (NFC) to utilize the certificate stored on the health card using the mobile phone. NFC-Localization-Android is an open source project which was implemented by the author to gather position data of the NFC-antennas of various Android based mobile phones. The goal is to provide users with better guidance during the authentication process by displaying the correct positioning of the health card relative to the mobile phone and its NFC antenna.
Fig. 1: Screenshot: Login guidance for the Huawei P40 in the Android E-Rezept App
NFC-Localization-Android was implemented because users reported that the authentication process was prematurely terminated. Therefore they were not able to log in to the E-Rezept-App. There are many possible reasons why a NFC process can get terminated. The best solution is to guide the users to place their health card exactly in the center of the NFC-antenna of their mobile phone, since the connection between the health card’s and the mobile phone’s antenna is most stable in this location. To be able to display this information, a database containing the position data of NFC antennas from various mobile phones was required. Because such a database did not exist, NFC-Localization-Android was implemented to gather the needed data from the websites of various manufacturers semiautomatically.
NFC-Localization-Android gathers and evaluates NFC antenna position data stored in images retrieved from websites of different manufacturers. The position of the NFC antenna of the corresponding mobile phone gets normalized (percentage of the screen) and saved together with the model names in a JSON-file. The following list and flowchart roughly display the sequence of the evaluation algorithm per manufacturer:
Note: The steps 2-4 are repeated for all mobile phone models extracted in step 1 before jumping to step 5
Fig. 2: Flowchart of the evaluation algorithm
To be flexible and future-proof, we decided to implement a unique NFC localization function for every manufacturer.
The implementation of some of the steps listed above varies for different manufacturers since the websites and the way the required data is displayed also varies.
Generally used functions are located in the
The JSON file which contains all the gathered position data is found in the output folder.
The following tools are required:
NFC-Localization-Android is available as open source software on GitHub. Check the Readme for installation and running guidance. Feedback and additional NFC-antenna positions are much appreciated.
E-Rezept-App-Android is also available as open source software on GitHub
Till Jannik Plewe has just finished his Bachelor of Science in software engineering. During his studies he worked on Java and Android projects for one year. At gematik he is mainly implementing UX-Features for the Android version of the E-Rezept-App.