With this rust library you can simply read data as json from German public health insurance cards. (Elektronische Gesundheitskarte eGK)
It is based off of this repo: https://github.com/Blueshoe/python-healthcard
A easy example to get insurance data as json object.
```rust use healthcard_rust::*;
fn main() { println!("Read data from German public health insurance cards (eGK)"); let card = getcard(); println!("Generation {:?}", healthcardrust::getcardgeneration(&card)); println!("{:?}", healthcardrust::getcarddata(&card).tostring()) }
```
The lib is automatically looking for a card reader. If there are multiple card readers available it uses the first one be default.
json
{
"insurance": {
"additionalInfoBillingGkv": "number",
"cmdVersion": "5.2.0",
"costAccounting": "number",
"costCarrierCountry": "string?",
"costCarrierId": "number",
"costCarrierName": "string?",
"costCountry": "string?",
"costName": "string?",
"typeOfInsurance": "number?"
},
"patient": {
"birthdate": "number",
"cmdVersion": "5.2.0",
"firstName": "string",
"gender": "string?",
"insurantId": "number",
"lastName": "string",
"nameAddition": "string?",
"postalAddress": {
"city": "string?",
"mailbox": "string?",
"zipCode": "string?"
},
"prefix": "string?",
"residenceAddress": {
"city": "string?",
"country": "string?",
"houseNumber": "number?",
"street": "string?",
"zipCode": "string?"
},
"title": ""
}
}
You can read more about the implementaion of the eGk in German: https://fachportal.gematik.de/fileadmin/userupload/fachportal/files/Spezifikationen/Basis-Rollout/ElektronischeGesundheitskarte/gemLFImpleGK_V160.pdf
Licensed under the MIT license.