# Presentation Definition v 0.2
```json=
{
"name": "Trusted Traveler Presentation Definition", // OPTIONAL
"purpose": "Multi-vaccine and more...", // OPTIONAL
"format": {}, // OPTIONAL It describes which credentials are supported. Don't worry about it yet...
"comment": "VP, OIDC, DIDComm, or CHAPI outer wrapper here", // OPTIONAL
"presentation_definition": {
"id": "32f54163-7166-48f1-93d8-ff217bdb0653", // MUST
"submission_requirements": [{ // OPTIONAL
"name": "Trusted Traveler Health Proof",
"rule": "pick", // Can be "pick" or "all" only
"count": 1, // We need count only if choose to pick
"from": "Health Proof Option" // We need a better group name
}],
"input_descriptors": [
// exemption_expiration_date must be a Unix timestamp in the future (line 292)
{
"id": "health_input_1", // MUST We need a better name for this one
"name": "Medical Vaccine Exemption",
"group": ["Health Proof Option"], // MUST match the "from" from the "submission_requirements" section
"purpose": "stuff",
"schema": [ // MUST
{
"uri": "hl:2lksjfdskljdf4432234lsakfHDHd", // Hashlink to the schema. Can we use hashlinks here or just regular http link?
"required": "true" // OPTIONAL. A value of true indicates that the given schema object is required to be the schema of the inputs used to fulfill the given Submission Requirement.
}
],
"constraints": {
// DO WE NEED THESE?????????????????????????????
"limit_disclosure": "required",
"statuses": {
"active": {
"directive": "required" // other values: "allowed", "disallowed"
},
"suspended": {...},
"revoked": {...}
},
//The is_holder property would be used by a Verifier to require that certain inputs be provided by a certain Subject. For example, an identity verification Presentation Definition might contain an Input Descriptor for a birthdate from a birth certificate. Using is_holder, the Verifier would be able to require that the Holder of the birth certificate Claim is the same as the Subject of the birthdate attribute. This is especially useful in cases where a Claim may have multiple Subjects.
"subject_is_issuer": {} // We might need this?
"is_holder": {} // We might need this?
"same_subject" : {} // We might need this?
// DO WE NEED THESE?????????????????????????????
"fields": [
{
// The value of this property MUST be an array of one or more JSONPath string expressions (as defined in the JSONPath Syntax Definition section) that select a target value from the input. The array MUST be evaluated from 0-index forward, breaking as soon as a Field Query Result is found (as described in Input Evaluation), which will be used for the rest of the entry’s evaluation. The ability to declare multiple expressions in this way allows the Verifier to account for format differences - for example: normalizing the differences in structure between JSON-LD/JWT-based Verifiable Credentials and vanilla JSON Web Tokens (JWTs) [RFC7797].
"path": ["$.mpid"], // Example is shown. Must meet one of the following credential schema format?
"id": "12345" // OPTIONAL If present, its value MUST be a string that is unique from every other field object’s id property, including those contained in other Input Descriptor Objects.
"purpose": "Master patient identifier of source that wrote the record to the ledger", // OPTIONAL. Got it from the Cardea schemas. Thanks Kim =)
"filter": { // OPTIONAL If present its value MUST be a JSON Schema descriptor used to filter against the values returned from evaluation of the JSONPath string expressions in the path array.
"predicate": "required" // OPTIONAL. We might need it in for some fields. Read description. There is a lot!
"type": "string",
"pattern": "did:example:gov1|did:example:gov2" // OPTIONAL 4CLG5pU5v294VdkMWxSByu:2:Vaccine_Exemption:1.0 ???
}
},
{
"path": ["$.credentialSubject.patient_local_id", "$.vc.credentialSubject.patient_local_id", "$.patient_local_id"], // this is another example
"filter": {
"type": "number",
"pattern": "^[0-9]{9}|^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$" // pattern also can be represented as a regular expression
}
},
{
"path": ["$.patient_surnames"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_given_names"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_surnames"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_date_of_birth"],
"filter": {
"type": "string",
"format": "date",
"minimum": "1999-05-16" // What do we want to set for the minimum?
}
},
{
"path": ["$.patient_gender_legal"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.patient_street_address"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_city"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_state_province_region"],
"filter": {
"type": "string"
,
"pattern": "" // pattern will work here
}
},
{
"path": ["$.patient_postalcode"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here, maybe
}
},
{
"path": ["$.patient_country"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.patient_phone"],
"filter": {
"type": "number",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.patient_surnames"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_email"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.exemption_record_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_requestor"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_requestor_relationship"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_issue_date"],
"filter": {
"type": "string",
"format": "date"
}
},
{
"path": ["$.exemption_state_province_region"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.exemption_country"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.exemption_type"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_medical_permanent"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_note"],
"filter": {
"type": "boolean",
"pattern": "true" // Got this from the example. Not sure why it's there...
},
{
"path": ["$.exemption_from_all"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_surnames"],
"filter": {
"type": "boolean",
"pattern": "true"
}
},
{
"path": ["$.exemption_diseases_code"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_disease_code_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_disease_code_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_medical_physician_surnames"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_medical_physician_given_names"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_medical_physician_full_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_medical_physician_license_number"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_medical_physician_license_type"],
"filter": {
"type": "string"
}
},
{
"path": ["$.exemption_medical_physician_license_state_province_region"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.exemption_medical_physician_license_country"],
"filter": {
"type": "string",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.exemption_expiration_date"],
"filter": {
"type": "string",
"format": "date",
"exclusiveMinimum": "Date.now()" // This is the idea of using UNIX timestamp. Then apply logic to it on the verifier side.
}
},
{
"path": ["$.exemption_credential_issuer"],
"filter": {
"type": "string"
}
},
{
"path": ["$.certificate_original_issuer"],
"filter": {
"type": "string"
}
},
{
"path": ["$.certificate_original_identifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.credential_issuer_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.credential_issue_date"],
"filter": {
"type": "string",
"format": "date"
}
}
]
}
},
// vaccine_series_complete must be “true” (line 495) and vaccine_administration_date must be a Unix timestamp more than 14 days ago (line 481)
{
"id": "health_input_2", // OPTIONAL We need a better name for this one
"name": "Vaccination",
"group": ["Health Proof Option"],
"purpose": "stuff",
"schema": [
{
"uri": "hl:2lksjfdskljdf4432234lsakfHDHd", // Where do we anchor schema ID's? Or we don't? RuuJwd3JMffNwZ43DcJKN1:2:Vaccination:1.4
"required": "true"
}
],
"constraints": {
"fields": [
{
"path": ["$.mpid"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_local_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.sending_facility"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_surnames"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_given_names"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_date_of_birth"],
"filter": {
"type": "string",
"format": "date",
"minimum": "1999-05-16" // What do we want to set for the minimum?
}
},
{
"path": ["$.patient_gender_legal"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_street_address"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_city"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_state_province_region"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_postalcode"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_country"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_phone"],
"filter": {
"type": "number",
"pattern": "" // pattern will work here
}
},
{
"path": ["$.patient_email"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_record_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_facility_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_facility_id_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_facility_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_state_province_region"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_postalcode"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_country"],
"filter": {
"type": "string",
"pattern": "^[0-9]{9}|^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$" // pattern also can be represented as a regular expression
}
},
{
"path": ["$.vaccine_administration_date"],
"filter": {
"type": "string",
"exclusiveMaximum": "today:-:1209600" // 14 days before today using UNIX timestamp
}
},
{
"path": ["$.vaccine_dose_number"],
"filter": {
"type": "number"
}
},
{
"path": ["$.vaccine_series_complete"],
"filter": {
"const": "true", // the value must equal to "true", this is based on presentation definition constraints spec
"type": "boolean",
"pattern": "true"
}
},
{
"path": ["$.vaccine_lot_number"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_code"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_code_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_code_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_manufacturer_code"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_manufacturer_code_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_manufacturer_code_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_disease_target_code"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_disease_target_code_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_disease_target_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_provider_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_provider_id_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_administration_provider_fullname"],
"filter": {
"type": "string"
}
},
{
"path": ["$.vaccine_education_reference_material"],
"filter": {
"type": "string"
}
},
{
"path": ["$.certificate_original_issuer"],
"filter": {
"type": "string"
}
},
{
"path": ["$.certificate_original_identifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.credential_issuer_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.credential_issue_date"],
"filter": {
"type": "string",
"format": "date",
}
}
]
}
},
{
"id": "health_input_3", // OPTIONAL We need a better name for this one
"name": "Lab Result",
"group": ["Health Proof Option"],
"purpose": "stuff",
"schema": [
{
"uri": "hl:2lksjfdskljdf4432234lsakfHDHd", // Where do we anchor schema ID's? Or we don't? RuuJwd3JMffNwZ43DcJKN1:2:Lab_Result:1.4
"required": "true"
}
],
"constraints": {
"fields": [
{
"path": ["$.mpid"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_local_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_surnames"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_given_names"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_date_of_birth"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_gender_legal"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_street_address"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_city"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_state_province_region"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_postalcode"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_country"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_phone"],
"filter": {
"type": "string"
}
},
{
"path": ["$.patient_email"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_observation_date_time"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_result"],
"filter": {
"type": "string",
"oneOf": [
{
"const": "Negative",
"dependent_fields": [{
"path": ["$.lab_specimen_collected_date"],
"filter": {
"type": "string",
"maximum": "Date.now()", // now
"minimum": "Date.now() - 259200" // 3 days ago, including the 3rd day
}
}]
},
{
"const": "Positive",
"dependent_fields": [{
"path": ["$.lab_specimen_collected_date"],
"filter": {
"type": "string",
"maximum": "Date.now() - 2419200" // 28 days ago, including the 28th day
}
}]
}
]
}
},
{
"path": ["$.lab_specimen_type"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_result_status"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_coding_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_code"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_description"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_order_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_normality"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_comment"],
"filter": {
"type": "string"
}
},
{
"path": ["$.ordering_facility_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.ordering_facility_id_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.ordering_facility_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.ordering_facility_state_province_region"],
"filter": {
"type": "string"
}
},
{
"path": ["$.ordering_facility_postalcode"],
"filter": {
"type": "string"
}
},
{
"path": ["$.ordering_facility_country"],
"filter": {
"type": "string"
}
},
{
"path": ["$.performing_laboratory_id"],
"filter": {
"type": "string"
}
},
{
"path": ["$.performing_laboratory_id_qualifier"],
"filter": {
"type": "string"
}
},
{
"path": ["$.performing_laboratory_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.performing_laboratory_state_province_region"],
"filter": {
"type": "string"
}
},
{
"path": ["$.performing_laboratory_postalcode"],
"filter": {
"type": "string"
}
},
{
"path": ["$.performing_laboratory_country"],
"filter": {
"type": "string"
}
},
{
"path": ["$.lab_performed_by"],
"filter": {
"type": "string"
}
},
{
"path": ["$.credential_issuer_name"],
"filter": {
"type": "string"
}
},
{
"path": ["$.credential_issue_date"],
"filter": {
"type": "string"
}
}
]
}
}
]
}
}
```
## updated and beautified JSON
```json=
{
"name": "Trusted Traveler Presentation Definition",
"purpose": "Multi-vaccine and more...",
"comment": "VP, OIDC, DIDComm, or CHAPI outer wrapper here",
"presentation_definition": {
"id": "32f54163-7166-48f1-93d8-ff217bdb0653",
"submission_requirements": [
{
"name": "Trusted Traveler Health Proof",
"rule": "pick",
"count": 1,
"from": "Health Proof Option"
}
],
"input_descriptors": [
{
"id": "health_input_1",
"name": "Vaccine_Exemption",
"group": [
"Health Proof Option"
],
"purpose": "stuff",
"schema": [
{
"uri": "RuuJwd3JMffNwZ43DcJKN1:2:Vaccine_Exemption:1.4",
"required": "true"
}
],
"constraints": {
"fields": [
{
"path": [
"$.mpid"
],
"id": "12345", // Optional
"purpose": "Master patient identifier of source that wrote the record to the ledger", // Optional
"filter": { // Required
"predicate": "required", // Optional
"type": "string", // Required
"pattern": "did:example:gov1|did:example:gov2" // Optional
}
},
{
"path": [
"$.credentialSubject.patient_local_id", // Normalizing the differences in structure between JSON-LD/JWT-based Verifiable Credentials and vanilla JSON Web Tokens (JWTs) [RFC7519].
"$.vc.credentialSubject.patient_local_id",
"$.patient_local_id"
],
"filter": {
"type": "number",
"pattern": "^[0-9]{9}|^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$" // Optional
}
},
{
"path": [
"$.patient_surnames"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_given_names"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_surnames"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_date_of_birth"
],
"filter": {
"type": "string",
"format": "date"
}
},
{
"path": [
"$.patient_gender_legal"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.patient_street_address"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_city"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_state_province_region"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.patient_postalcode"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.patient_country"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.patient_phone"
],
"filter": {
"type": "number",
"pattern": ""
}
},
{
"path": [
"$.patient_surnames"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_email"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.exemption_record_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_requestor"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_requestor_relationship"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_issue_date"
],
"filter": {
"type": "string",
"format": "date"
}
},
{
"path": [
"$.exemption_state_province_region"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.exemption_country"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.exemption_type"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_medical_permanent"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_note"
],
"filter": {
"type": "boolean",
"pattern": "true"
}
},
{
"path": [
"$.exemption_from_all"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_surnames"
],
"filter": {
"type": "boolean",
"pattern": "true"
}
},
{
"path": [
"$.exemption_diseases_code"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_disease_code_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_disease_code_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_medical_physician_surnames"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_medical_physician_given_names"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_medical_physician_full_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_medical_physician_license_number"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_medical_physician_license_type"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.exemption_medical_physician_license_state_province_region"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.exemption_medical_physician_license_country"
],
"filter": {
"type": "string",
"pattern": ""
}
},
{
"path": [
"$.exemption_expiration_date"
],
"filter": {
"type": "string",
"format": "date",
"exclusiveMinimum": "today",
"required": "true"
}
},
{
"path": [
"$.exemption_credential_issuer"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.certificate_original_issuer"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.certificate_original_identifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.credential_issuer_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.credential_issue_date"
],
"filter": {
"type": "string",
"format": "date"
}
}
]
}
},
{
"id": "health_input_2",
"name": "Vaccination",
"group": [
"Health Proof Option"
],
"purpose": "stuff",
"schema": [
{
"uri": "RuuJwd3JMffNwZ43DcJKN1:2:Vaccination:1.4",
"required": "true"
}
],
"constraints": {
"fields": [
{
"path": [
"$.mpid"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_local_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.sending_facility"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_surnames"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_given_names"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_date_of_birth"
],
"filter": {
"type": "string",
"format": "date"
}
},
{
"path": [
"$.patient_gender_legal"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_street_address"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_city"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_state_province_region"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_postalcode"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_country"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_phone"
],
"filter": {
"type": "number",
"pattern": ""
}
},
{
"path": [
"$.patient_email"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_record_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_facility_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_facility_id_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_facility_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_state_province_region"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_postalcode"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_country"
],
"filter": {
"type": "string",
"pattern": "^[0-9]{9}|^([a-zA-Z]){4}([a-zA-Z]){2}([0-9a-zA-Z]){2}([0-9a-zA-Z]{3})?$"
}
},
{
"path": [
"$.vaccine_administration_date"
],
"filter": {
"type": "string",
"exclusiveMaximum": "today:-:1209600"
}
},
{
"path": [
"$.vaccine_dose_number"
],
"filter": {
"type": "number"
}
},
{
"path": [
"$.vaccine_series_complete"
],
"filter": {
"const": "true",
"type": "boolean",
"pattern": "true"
}
},
{
"path": [
"$.vaccine_lot_number"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_code"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_code_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_code_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_manufacturer_code"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_manufacturer_code_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_manufacturer_code_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_disease_target_code"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_disease_target_code_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_disease_target_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_provider_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_provider_id_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_administration_provider_fullname"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.vaccine_education_reference_material"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.certificate_original_issuer"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.certificate_original_identifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.credential_issuer_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.credential_issue_date"
],
"filter": {
"type": "string",
"format": "date"
}
}
]
}
},
{
"id": "health_input_3",
"name": "Lab_Result",
"group": [
"Health Proof Option"
],
"purpose": "stuff",
"schema": [
{
"uri": "RuuJwd3JMffNwZ43DcJKN1:2:Lab_Result:1.4",
"required": "true"
}
],
"constraints": {
"fields": [
{
"path": [
"$.mpid"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_local_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_surnames"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_given_names"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_date_of_birth"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_gender_legal"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_street_address"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_city"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_state_province_region"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_postalcode"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_country"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_phone"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.patient_email"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_observation_date_time"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_result"
],
"filter": {
"type": "string",
"oneOf": [
{
"const": "Negative",
"dependent_fields": [
{
"path": [
"$.lab_specimen_collected_date"
],
"filter": {
"type": "string",
"minimum": "today:-:259200"
}
}
]
},
{
"const": "Positive",
"dependent_fields": [
{
"path": [
"$.lab_specimen_collected_date"
],
"filter": {
"type": "string",
"maximum": "today:-:2419200"
}
}
]
}
]
}
},
{
"path": [
"$.lab_specimen_type"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_result_status"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_coding_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_code"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_description"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_order_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_normality"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_comment"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.ordering_facility_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.ordering_facility_id_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.ordering_facility_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.ordering_facility_state_province_region"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.ordering_facility_postalcode"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.ordering_facility_country"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.performing_laboratory_id"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.performing_laboratory_id_qualifier"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.performing_laboratory_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.performing_laboratory_state_province_region"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.performing_laboratory_postalcode"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.performing_laboratory_country"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.lab_performed_by"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.credential_issuer_name"
],
"filter": {
"type": "string"
}
},
{
"path": [
"$.credential_issue_date"
],
"filter": {
"type": "string"
}
}
]
}
}
]
}
}
```