Skip to content

Commit

Permalink
Merge pull request #22 from AbhiGaddi/beneficiary-schema
Browse files Browse the repository at this point in the history
feat : Add beneficiary schema
  • Loading branch information
shiva-rakshith authored Sep 7, 2023
2 parents 0a2774a + 1d2867c commit 3830baf
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 12 deletions.
61 changes: 61 additions & 0 deletions java/registry/src/main/resources/public/_schemas/Beneficiary.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "object",
"properties": {
"Beneficiary": {
"$ref": "#/definitions/Beneficiary"
}
},
"required": [
"Beneficiary"
],
"title": "Beneficiary",
"definitions": {
"Beneficiary": {
"$id": "#/definitions/Beneficiary",
"type": "object",
"title": "The Beneficiary Schema",
"required": [
"mobile"
],
"properties": {
"name": {
"type": "string"
},
"email": {
"type": "string",
"format": "email"
},
"mobile": {
"type": "string",
"pattern": "^[0-9]{10}$"
},
"insurance_id": {
"type": "string"
},
"payers": {
"type": "string"
}
}
}
},
"_osConfig": {
"ownershipAttributes": [
{
"email": "/mobile",
"mobile": "/mobile",
"userId": "/mobile"
}
],
"uniqueIndexFields": [
"mobile"
],
"deleteRoles": [
"anonymous"
],
"systemFields": [
"osCreatedAt",
"osUpdatedAt"
]
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,6 @@
"primary_mobile":{
"type":"string"
},
"masked_primary_email": {
"type": "string"
},
"masked_primary_mobile": {
"type": "string"
},
"additional_mobile":{
"type":"array",
"items":{
Expand Down
6 changes: 0 additions & 6 deletions java/registry/src/main/resources/public/_schemas/User.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@
"type":"string",
"format": "email"
},
"masked_email": {
"type": "string"
},
"masked_mobile": {
"type": "string"
},
"linked_user_id":{
"type":"string"
},
Expand Down

0 comments on commit 3830baf

Please sign in to comment.