Audiometry is a SwiftUI application for capturing patient hearing test data, calculating hearing-loss results, and printing patient reports on iPhone and iPad. Patient data is stored locally as JSON through PatientDataStore.
![]() |
- Xcode 26 or 27
- Swift 6
- iOS 18 or later
- iPhone or iPad device or simulator
- Patient data entry for name, age, and occupation
- Audiometric input for both ears at 500, 1000, 2000, 4000, and 8000 Hz
- Hearing loss assessment calculations
- SAL and ELI index calculations with categorized results
- Patient save, update, delete, search, and previous/next navigation
- Patient report preview and AirPrint printing
- Localized UI in English, Spanish, French, and Italian
Patient records are saved to patients.json in the app's Application Support directory. On first launch, the bundled sample data is copied there if no patient database exists yet.
Audiometry/AudiometryApp.swift— SwiftUI app entry pointAudiometry/Views/ContentView.swift— patient editing and calculation UIAudiometry/Model/PatientDataStore.swift— JSON-backed persistenceAudiometry/Model/PatientNavigationView.swift— patient actions, search, navigation, and language menuAudiometry/Model/AudiometryCalculations.swift— hearing-loss, SAL, and ELI calculationsAudiometry/<language>.lproj/Localizable.strings— localized strings
Open Audiometry.xcodeproj in Xcode, select the Audiometry scheme, and choose an iPhone or iPad device or simulator destination.
Command-line simulator build:
xcodebuild -project Audiometry.xcodeproj -scheme Audiometry -destination 'generic/platform=iOS Simulator' buildThe project has no separate test target.
