Skip to content

Commit

Permalink
Merge branch 'main' into CU-86byv0cyf_Add-initial-package-and-configu…
Browse files Browse the repository at this point in the history
…ration-files-for-FHIR-info-Gateway
  • Loading branch information
drizzentic authored Sep 16, 2024
2 parents 2b94455 + eca0f19 commit 9f4f8ee
Show file tree
Hide file tree
Showing 17 changed files with 721 additions and 101 deletions.
239 changes: 239 additions & 0 deletions client-registry-jempi/config/config-api.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,239 @@
{
"fields": [
{
"fieldName": "aux_id",
"fieldType": "String",
"fieldLabel": "AUX ID",
"groups": ["identifiers", "record_details"],
"scope": [
"/patient-record/:uid",
"/golden-record/:uid",
"/record-details/:uid",
"/search/custom"
],
"readOnly": true,
"accessLevel": []
},
{
"fieldName": "givenName",
"fieldType": "String",
"fieldLabel": "First Name",
"groups": [
"name",
"demographics",
"filter",
"linked_records",
"record_details"
],
"scope": [
"/notifications/match-details",
"/record-details/:uid/relink",
"/search/simple",
"/search/custom",
"/search-results/golden",
"/search-results/patient",
"/record-details/:uid",
"/browse-records"
],
"validation": {
"required": true,
"onErrorMessage": "The family name cannot be empty"
},
"accessLevel": []
},
{
"fieldName": "familyName",
"fieldType": "String",
"fieldLabel": "Last Name",
"groups": [
"name",
"demographics",
"filter",
"linked_records",
"record_details"
],
"scope": [
"/record-details/:uid",
"/notifications/match-details",
"/record-details/:uid/relink",
"/search/simple",
"/search/custom",
"/search-results/golden",
"/search-results/patient",
"/browse-records"
],
"validation": {
"required": true,
"onErrorMessage": "The family name cannot be empty"
},
"accessLevel": []
},
{
"fieldName": "gender",
"fieldType": "String",
"fieldLabel": "Gender",
"groups": [
"demographics",
"filter",
"sub_heading",
"linked_records",
"record_details"
],
"scope": [
"/record-details/:uid",
"/notifications/match-details",
"/record-details/:uid/relink",
"/search/custom",
"/browse-records"
],
"validation": {
"required": true,
"regex": "^(male|female)$",
"onErrorMessage": "The Gender cannot be empty and should either be male, female or neutral"
},
"accessLevel": []
},
{
"fieldName": "dob",
"fieldType": "Date",
"fieldLabel": "Date of Birth",
"groups": [
"demographics",
"filter",
"sub_heading",
"linked_records",
"record_details"
],
"scope": [
"/record-details/:uid",
"/notifications/match-details",
"/record-details/:uid/relink",
"/search/simple",
"/search/custom",
"/search-results/golden",
"/search-results/patient",
"/browse-records"
],
"accessLevel": [],
"validation": {
"required": true,
"onErrorMessage": "Date of birth cannot be empty"
}
},
{
"fieldName": "city",
"fieldType": "String",
"fieldLabel": "City",
"groups": ["demographics", "filter", "linked_records", "record_details"],
"scope": [
"/record-details/:uid",
"/notifications/match-details",
"/record-details/:uid/relink",
"/search/custom",
"/browse-records"
],
"accessLevel": [],
"validation": {
"required": true,
"onErrorMessage": "Date of birth cannot be empty"
}
},
{
"fieldName": "phoneNumber",
"fieldType": "String",
"fieldLabel": "Phone No",
"groups": ["demographics", "filter", "linked_records", "record_details"],
"scope": [
"/record-details/:uid",
"/notifications/match-details",
"/record-details/:uid/relink",
"/search/custom",
"/browse-records"
],
"accessLevel": []
},
{
"fieldName": "nationalId",
"fieldType": "String",
"fieldLabel": "National ID",
"groups": ["identifiers", "linked_records", "record_details"],
"scope": [
"/record-details/:uid",
"/notifications/match-details",
"/record-details/:uid/relink",
"/search/simple",
"/search/custom",
"/search-results/golden",
"/search-results/patient",
"/browse-records"
],
"accessLevel": [],
"validation": {
"required": true,
"regex": "",
"onErrorMessage": "The national Id cannot be empty"
}
}
],
"systemFields": [
{
"fieldName": "recordType",
"fieldType": "String",
"fieldLabel": "Record Type",
"groups": ["none"],
"scope": ["/notifications/match-details", "/record-details/:uid/relink"],
"accessLevel": []
},
{
"fieldName": "uid",
"fieldType": "String",
"fieldLabel": "UID",
"groups": [
"identifiers",
"sub_heading",
"linked_records",
"record_details",
"filter"
],
"scope": [
"/notifications/match-details",
"/record-details/:uid/relink",
"/search-results/golden",
"/search-results/patient",
"/record-details/:uid",
"/browse-records"
],
"accessLevel": []
},
{
"fieldName": "createdAt",
"fieldType": "String",
"fieldLabel": "Created At",
"groups": ["linked_records", "record_details", "audit_trail"],
"scope": ["/record-details/:uid", "/browse-records"],
"accessLevel": []
},
{
"fieldName": "sourceId",
"fieldType": "SourceId",
"fieldLabel": "Source Id",
"groups": ["registering_facility", "linked_records", "record_details"],
"scope": ["/record-details/:uid", "/browse-records"],
"accessLevel": []
},
{
"fieldName": "score",
"fieldType": "Number",
"fieldLabel": "Score",
"groups": ["none", "record_details"],
"scope": [
"/patient-record/:uid",
"/golden-record/:uid",
"/record-details/:uid",
"/notifications/match-details",
"/record-details/:uid/relink"
],
"accessLevel": []
}
]
}
Loading

0 comments on commit 9f4f8ee

Please sign in to comment.