QR Code in HCX : Proposal for standardisation of QR Code information #123
ajitsingh2603
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Introduction
In today's fast-paced digital world, the ubiquitous presence of QR codes has made it evident that they are a powerful tool for swiftly and effortlessly capturing information. This proposal outlines the specification and structure of QR code data, aiming to facilitate its generation and use in the context of Health Claims Data Exchange (HCX)
Background & Key scenarios
Healthcare beneficiaries and providers frequently encounter the need to exchange vital information to verify eligibility and facilitate claim processing. It is crucial to define the necessary information to enable and generate HCX protocol requests, offering an efficient and convenient means for exchanging key data. This requirement becomes particularly evident in various scenarios where HCX participants find it beneficial to utilize QR codes as an expedited method for sharing information and streamlining the request process, including:
To address these scenarios effectively, we must define the specification for two key components:
Additionally, we must keep the following considerations in mind for the QR code specifications:
QR Code Specification
The QR code specification must encompass all the necessary information to process the desired requests efficiently while adhering to universal standards for widespread understanding and adoption.
To accomplish this, we propose using the W3C Verifiable Credential framework to define the QR code's structure. This approach ensures the authenticity of the data contained within the QR code. The standard structure of the data to generate the QR code is as follows:
{
"@context": [
"https://www.w3.org/2018/credentials/v1",
"https://www.w3.org/2018/credentials/examples/v1"
],
"id": "http://hcxprotocol.io/credentials/3732",
"type": [
"VerifiableCredential"
],
"issuer": "https://hcxprotocol.io/participant/565049",
"issuanceDate": "2023-10-01T00:00:00Z",
"expirationDate": "2020-01-01T19:23:24Z",
"preferredHCXPath": "http://hcx.swasth.app/api/v0.8/",
"credentialSubject": {
"id": "did:example:ebfeb1f712ebc6f1c276e12ec21",
// Details about the Beneficiary or Provider
},
"proof": {
"type": "Ed25519Signature2020",
"created": "2023-10-01T00:00:02Z",
"verificationMethod": "https://hcxprotocol.io/issuers/565049#key-1",
"proofPurpose": "assertionMethod",
"proofValue": "z3FXQjecWufY46yg5abdVZsXqLhxhueuSoZgNSARiKBk9czhSePTFehP
8c3PGfb6a22gkfUKods5D2UAUL5n2Brbx"
}
}
In the context of this specification, we employ the JSON-LD + JWT format for Verifiable Credentials. This format encompasses the following key elements:
Issuer: This specification defines a property for expressing the issuer of a verifiable credential.
Issuance Date: The specification includes a property that signifies the date and time at which a credential becomes valid, known as the "issuance date."
Expiration Date: The expirationDate is expected to be within an expected range for the verifier. For example, a verifier can check that the expiration date of a verifiable credential is not in the past.
Proofs (Signatures): At least one proof mechanism, and the details necessary to evaluate that proof, MUST be expressed for a credential to be a verifiable credential that is, to be verifiable.
Credential Subject: The essential information related to the credential resides within the "credential subject."
The verifiable credential, complete with proof data in Base64String format, will serve as the foundation for generating the QR code.
Within this protocol, we outline the proposal for defining the credential subject for both beneficiaries and providers. Moreover, we establish the procedural framework for issuing QR codes in the format of Verifiable Credentials.
The subsequent step involves proposing the delineation of beneficiary and provider-specific information within the standard structure. By proposing these measures, we aim to streamline the use of QR codes in the Health Claims Data Exchange, providing a secure, efficient, and universally accessible means of exchanging essential healthcare information.
Beneficiary Policy
Subject Structure
The QR code representing the beneficiary is designed to encapsulate the following essential details within the credential subject. These details are critical for participants in the HCX gateway to seamlessly capture and process coverage eligibility and claim requests:
{
"beneficiary": {
"identifier": [{ // Required
"value": "",
"system": "",
"assigner": "",
"period": {
"start": "",
"end": ""
}
}],
"name": "", // Required
"insurer": "", // Required
"mobile": "",
"location": ""
}
}
The identifier is an array of objects. We inherited the Identifier specification from FHIR here to allow multiple values from different systems representing the same object.
Issuance mechanism
Given that beneficiaries rely on the insurance-related information contained within these credentials, the issuance of QR codes in verifiable credentials format is proposed to be the responsibility of the payer. This issuance process should strictly adhere to the specifications outlined herein, ensuring a standardised and secure approach to information exchange.
Participant
Subject structure
The provider's QR code is intended to encompass the following vital details, accompanied by necessary proofs, to enable beneficiaries to capture information and initiate claim requests effectively:
{
"participant": {
"identifier": [{ // Required
"value": "",
"system": "",
"assigner": "",
"period": {
"start": "",
"end": ""
}
}],
"name": "", // Required
"type": "", // Required - payor, provider.hospital, etc,.
"location": ""
}
}
Similar to the identifier for beneficiary, the participant also follows the same format to allow multiple values from different systems to represent the same.
Issuance mechanism
These QR codes, presented in the verifiable credentials format, are proposed to be self generated by the provider using the signing certificate shared with the HCX network as part of the onboarding process. This flexibility ensures a seamless and secure means of data exchange between providers and beneficiaries.
QR Code image specifications
Colour Palette: Utilize a high-contrast colour scheme, preferably black and white, for better readability. The background colour should be light, while the QR code itself should be a dark colour to ensure optimal contrast.
QR Code Size: Maintain an appropriate QR code size to enhance scanning accuracy. The minimum recommended size is 2 × 2 inches (5 × 5 cm) to ensure clarity.
Quiet Zone: Surround the QR code with a quiet zone (blank space) at least equal to four modules (the small squares that form the QR code) on all sides. This helps prevent interference with the scanning process.
Error Correction Level: Opt for a suitable error correction level based on the environment where the QR code will be scanned. Higher error correction is recommended for situations where the code might be partially obscured or damaged.
Logo Placement: If incorporating a logo within the QR code, ensure it doesn't compromise the scanning capability. Place the logo in a designated area that doesn't overlap with essential data.
Encoding Format: Use the QR code encoding format specified in the W3C Verifiable Credential standard, employing JSON-LD + JWT.
Clear Text: If applicable, provide clear instructions or text near the QR code to guide users on its purpose and usage.
Testing: Always test the QR code in various scanning environments and devices to ensure widespread compatibility and functionality.
By adhering to these visual guidelines, we aim to create QR codes that are not only aesthetically pleasing but also optimised for efficient and accurate information exchange within the HCX ecosystem.
Beta Was this translation helpful? Give feedback.
All reactions