Skip to content

zdavatz/generikacc

Repository files navigation

Generika.cc

Build Status

Features

  • iPhone/iPad Support
  • EAN-13 Barcode Scan
  • CHMED16A1 e-Prescription QR Code Scan
  • Kostengutsprache (KVV 71) form for IBD Gastroenterology with PDF/Email export
  • Insurance card OCR scanner (Swiss Versichertenkarte) with BAG-to-insurer lookup
  • Drug Price Comparison Viewer
  • Fachinformation/Patienteninformation Viewer
  • Drug Interactions Checker (local SDIF database, full-screen on iPad)
  • Side effects Viewer
  • Expiry date Saving
  • ZurRose pharmacy prescription submission

Repository

https://github.com/zdavatz/generikacc

Setup

Requirements

  • Xcode 16+ (iOS 15.0+ deployment target)
  • XCTest (for testing)

Dependencies

No external dependencies. All previously used CocoaPods (AFNetworking, NTMonthYearPicker, GZIP, KissXML, SSZipArchive, OCMock) have been replaced with built-in iOS APIs and lightweight custom implementations:

  • UIDatePicker (replaces NTMonthYearPicker)
  • zlib (replaces GZIP and SSZipArchive)
  • XMLBuilder (replaces KissXML/DDXML)

Build

% cd /path/to/generikacc
% open Generika.xcworkspace

Build with Xcode or from command line:

% xcodebuild -workspace Generika.xcworkspace -scheme Generika

Set ZurRose certificate and password

  • Copy the ZurRose certificate to Generika/ZurRose/client.p12.
  • Rename Generika/ZurRose/ZurRoseCredential.h.sample to Generika/ZurRose/ZurRoseCredential.h, and set the password in the file.
  • Open Generika.xcworkspace and build it.

Add local databases

  • Generate amiko_db_full_idx_pinfo_de.db with cpp2sqlite
    • ./cpp2sqlite --lang=de --pinfo
  • Put it in Generika/Databases/
  • interactions.db is also in Generika/Databases/ and can be updated in-app via Settings or downloaded from http://pillbox.oddb.org/interactions.db

Debug

You may want to clean before rebuild, if you face something weird problem...

# remove cache and compiled objects, log etc.
% rm -fr ~/Library/Developer/Xcode/DerivedData

And then click Product > Clean from menu (Shift + Command + K)

Test

Run XCTest.

test-runner script supports multiple versions of iphonesimulator.

# same as OS_VERSION="latest" ./bin/test-runner All, see `test-runner` script
% make test
% OS_VERSION="10.3.1" make test

# run single test case
% OS_VERSION="latest" ./bin/test-runner ProductTests/testInit
% OS_VERSION="10.3.1" ./bin/test-runner ProductTests/testInit

About target versions, see also matrix in .travis.yml.

Licence

GPL-3.0

Generika.cc
Copyright (c) 2012-2026 ywesee GmbH

See LICENSE.txt.

Packages

 
 
 

Contributors