From 5aceb63ef799d4e1cf4225a1bd44515ff192a331 Mon Sep 17 00:00:00 2001 From: Theo Diefenthal Date: Mon, 17 Mar 2025 22:59:22 +0100 Subject: [PATCH] #4 add EF.PD and EF.VD to registerEGK. Only with the infos contained, the primary system can properly calculate the hcv after a readVSD operation --- ehcl/CHANGELOG.md | 4 ++++ ehcl/asyncapi.yaml | 10 ++++++++++ ehcl/msc.puml | 10 ++++++++-- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/ehcl/CHANGELOG.md b/ehcl/CHANGELOG.md index 44e407c..e0a5490 100644 --- a/ehcl/CHANGELOG.md +++ b/ehcl/CHANGELOG.md @@ -15,6 +15,10 @@ following sections (if non-empty): Currently, the versioning policy of this project follows [Semantic Versioning v2.0.0][]. +## v1.0.1 +Include the EF.PD and EF.VD file contents into the registerEGK message such that the primary system can properly +calculate the HCV after readVSD for subsequent eRezept-Fachdienst calls. + ## v1.0.0 First release publicly available. diff --git a/ehcl/asyncapi.yaml b/ehcl/asyncapi.yaml index 5ee1199..10ed837 100644 --- a/ehcl/asyncapi.yaml +++ b/ehcl/asyncapi.yaml @@ -275,6 +275,8 @@ components: - cvcAuth - cvcCA - atr + - pd + - vd description: Base64 encoded json payload properties: cardSessionId: @@ -307,6 +309,14 @@ components: type: string format: byte description: Data from EF.ATR + pd: + type: string + format: byte + description: Data from EF.PD, required for HCV calculation + vd: + type: string + format: byte + description: Data from EF.VD, required for HCV calculation contentType: application/json sendApduPayload: type: object diff --git a/ehcl/msc.puml b/ehcl/msc.puml index 23a4dc6..cc176c7 100644 --- a/ehcl/msc.puml +++ b/ehcl/msc.puml @@ -57,12 +57,18 @@ egk <- app : cmdAPDU (ReadBinary EF.C.CH.AUT.E256) egk -> app : rspAPDU (EF.C.CH.AUT.E256 content) egk <- app : cmdAPDU (ReadBinary EF.C.CH.AUT.R2048) egk -> app : rspAPDU (EF.C.CH.AUT.R2048 content) +egk <- app : cmdAPDU (SELECT DF.HCA) +egk -> app : rspAPDU (SELECT OK) +egk <- app : cmdAPDU (ReadBinary EF.PD) +egk -> app : rspAPDU (EF.PD content) +egk <- app : cmdAPDU (ReadBinary EF.VD) +egk -> app : rspAPDU (EF.VD content) group App -app -> app : Build registerEgkMessage\n(CardSessionID\nEF.ATR\nEF.Version2\nEF.GDO\nEF.C.CA_eGK.CS.E256\nEF.EF.C.eGK.AUT_CVC.E256\nEF.C.CH.AUT.E256\nEF.C.CH.AUT.R2048) +app -> app : Build registerEgkMessage\n(CardSessionID\nEF.ATR\nEF.Version2\nEF.GDO\nEF.C.CA_eGK.CS.E256\nEF.EF.C.eGK.AUT_CVC.E256\nEF.C.CH.AUT.E256\nEF.C.CH.AUT.R2048\nEF.PD\nEF.VD) end -group App Hanshake with App-Backend or eHCL +group App Handshake with App-Backend or eHCL app <-> ehcl : Handshake(webSocketId) end