Notes for Chubb and templates for Sandata and Cin7. Skuid notes, todos.

This commit is contained in:
Norm Rasmussen
2024-04-18 18:57:55 -04:00
parent 908ab49d70
commit 59e9a4ae2b
11 changed files with 130 additions and 17 deletions

Binary file not shown.

View File

@ -33,6 +33,7 @@ def get_groups(APIKEY):
if "next" not in nextlink:
break
print(groups)
with open(
"/Users/normrasmussen/Downloads/Sandata-Groups.csv", "a+", newline="\n"

26
Scripts/API_Tests/tmp.py Normal file
View File

@ -0,0 +1,26 @@
REF = [
("Arizona", "ST - AZ AHCCCS", "2670eace-3ca9-4f6d-bc72-aeb4445e0e11"),
("California", "ST - CA CHHS BOTH (PCS & HHCS)", "d04e4432-53fc-495f-901f-400e23abbf86"),
("California", "ST - CA CHHS JE", "6807eedb-608a-4bad-b304-87eb93e3b740"),
("California", "ST - CA CHHS STATE", "e10e730c-df4f-40a2-ad5c-400a2d92a703"),
("Colorado", "ST - Colorado (HCPS)", "eb2e4fa5-03d0-4b13-89d8-c9b21237ca87"),
("Connecticut", "ST - CT DDS", "d1ad670a-ad25-4406-8ed3-9516a73bb6bc"),
("DC", "ST - DC (DHCF)", "7ee099da-dbc5-4ce5-8731-f23227df301a"),
("Delaware", "ST - DE DHHS", "fe352a1a-76f3-41f7-9ce2-500ea32028ce"),
("Hawaii", "ST - Hawaii", "fc2c62e7-cccb-4544-8f6d-437cd3268312"),
("Idaho", "ST - Idaho (DHW)", "c12966c7-ac59-48f4-b322-90e0745ceec3"),
("Illinois", "ST - IL DHS", "e3aa57c1-6526-4dca-90b3-fedaf9b53930"),
("Indiana", "ST - Indiana (FSSA)", "1d1ba9fe-6c06-4fef-9958-05f085f2de46"),
("Missouri", "ST - Missouri (DSS PCS)", "27b825aa-4094-4820-a69b-4a75b8c7672e"),
("Nevada", "ST - Nevada (DHCFP)", "9fcf4e98-1dfd-441f-8ee4-0131c968867c"),
("North Carolina", "ST - North Carolina (DHHS)", "67a01f25-57ca-49a8-8fed-b7181b020842"),
("North Daktoa", "ST - North Dakota (DHHS)", "62dc0f55-a51d-4acf-90ce-dc10788385af"),
("Ohio", "ST - OH NON-Agencies", "5d50b3ed-671b-4e97-9d5e-87f8b755dfe2"),
("Ohio", "ST - OH ODM Agency Provider", "0c8efefc-364b-4971-b376-030493611b0d"),
("Ohio", "ST - OH ODM AGENCY PROVIDER ALT EVV", "838c0923-43b4-48bd-8011-00fd0411c68f"),
("Pennsylvania", "ST - PA DHS", "24c85122-aa00-4ce2-ad9b-70bb9c0f3f2f"),
("Rhode Island", "ST - Rhode Island EOHHS", "e52fd639-bf63-4840-b8bc-2e6a6f11560e"),
("Tennessee", "ST - TN BCT", "f1e1980b-f6f8-49d3-935b-25182657fc4a"),
("Vermont", "ST - Vermont (DVHA)", "e7e36fc5-fbe6-4e76-ac37-141c75aa069e"),
("Wisconsin", "ST - Wisconsin (DHS)", "16d31811-8714-41ec-a373-19c4b890910b"),
]

View File

@ -0,0 +1,40 @@
import tmp
webhook_payload = {
"payload": {
"array": [
{
"id": "e134030d-a2a9-4de2-b4d5-87081feee18a",
"email": "gwalden@sandata.com",
"type": "person_properties",
"attributes": {
"properties": {
"agency_name": "Test 2",
"agency_id": "Test 2",
"medicaid_id": "54321",
"provider_id": "0987654321",
"learner_role": "Agency Billing",
"learner_state": "Tennessee",
"oh_group_name": "ST - OH ODM Agency Provider",
"evv_alt_for_ca_oh": "",
"successfully_completed_secondary_registration": True,
"cal_evv_id": None
}
}
}
]
},
"params": {}
}
for item in webhook_payload['payload']['array']:
evv = item['attributes']['properties']['evv_alt_for_ca_oh']
state = item['attributes']['properties']['learner_state']
group_result = [ref_state for ref_state in tmp.REF if state in ref_state]
if len(group_result) > 1:
for group in group_result:
if evv in group:
print(group)
else:
group_uuid = group_result[0][2]
print(group_uuid)