I’m setting my $$BF_Model as:
Set Variable [$$BF_Model ; Value: (JSONSetElement ( $$BF_Model ;"attorney" ; Case_Attorney::attorneyAsJSON ; JSONObject )
Here’s what I’m trying (my BF Html):
<template>
<ul role="list" class="divide-y divide-gray-200">
<li v-for="person in model.attorney.patient" :key="model.attorney.patient.email" class="py-4 flex">
<img class="h-10 w-10 rounded-full" :src="person.image" alt="" />
<div class="ml-3">
<p class="text-sm font-medium text-gray-900">{{model.attorney.patient.nameFirstMiddleLast_c}}</p>
<p class="text-sm text-gray-500">{{model.attorney.patient.email}}</p>
</div>
</li>
</ul>
</template>
My incoming data model shows (sorry … I couldn’t think of a better way to show what’s coming into BF):
"attorney": {
"case": [{
"caseManager": "John Williams",
"caseManagerEmail": "caseManager@attorney.com",
"caseManagerPhone": "",
"dateOfInjury": "12/08/2021",
"id_case": "C5EC1864-57D0-4288-BA24-42770723D6E1",
"injuryType": "Auto"
}, {
"caseManager": "Peter Piper",
"caseManagerEmail": "peter@attorneyCaseManager.com",
"caseManagerPhone": "",
"dateOfInjury": "01/04/2022",
"id_case": "293A0B51-5F02-4C1D-8EC0-32E5EC7CF8F9",
"injuryType": ""
}, {
"caseManager": "Peter Piper",
"caseManagerEmail": "peter@attorneyCaseManager.com",
"caseManagerPhone": "",
"dateOfInjury": "03/04/2022",
"id_case": "BFAE29AB-DDCA-409A-B169-5F2D2C94F940",
"injuryType": ""
}, {
"caseManager": "John Williams",
"caseManagerEmail": "caseManager@attorney.com",
"caseManagerPhone": "",
"dateOfInjury": "02/27/2022",
"id_case": "AD0DEA10-4689-4389-9A23-3A0C196CBD0D",
"injuryType": ""
}, {
"caseManager": "Peter Piper",
"caseManagerEmail": "peter@attorneyCaseManager.com",
"caseManagerPhone": "",
"dateOfInjury": "02/27/2022",
"id_case": "E81B1B42-A747-4F6C-82B9-A186209F7D76",
"injuryType": ""
}],
"company": "HutzHutzHike",
"email": "redacted",
"id_attorney": "1650C7B9-67D3-46AA-BD89-4D95005E577C",
"nameFirst": "Lionel",
"nameFirstMiddleLast_c": "Lionel Hutz",
"nameLast": "Hutz",
"patient": [{
"addrCity": "Riverside",
"addrDisplay_c": "redacted",
"addrState": "CA",
"addrStreet": "redacted",
"addrZip": "92506",
"age": "44",
"contactMethod": "Email",
"dateOfBirth": "04/29/1977",
"email": "redacted",
"emergencyContact": "redacted",
"emergencyContactRelationship": "Spouse",
"heightFeet": "6",
"heightInches": "2",
"id_patient": "E3D63C18-43EF-43B7-A70B-AE9EFD7C1B09",
"insGroupNumber": "X238J9",
"insName": "Carefirst Inc.",
"insPolicyNumber": "123456789",
"language": "Spanish",
"maritalStatus": "Married",
"nameFirst": "Waylan",
"nameFirstMiddleLast_c": "Waylan Wyatt Kruse",
"nameLast": "Kruse",
"occupation": "CRNA",
"pharmAddress": "redacted",
"pharmName": "Rite Aid",
"pharmPhone": "951-682-0177",
"phoneEmergencyContact": "111-111-1111",
"phoneHome": "000-000-0000",
"phoneInsurance": "000-000-0000",
"phoneMobile": "redacted",
"race": "White, non-Hispanic",
"sex": "M",
"weightLbs": "240"
}, {
"addrCity": "Cypress",
"addrDisplay_c": "redacted",
"addrState": "TX",
"addrStreet": "21026 Green Jewel Dr",
"addrZip": "77433",
"age": "47",
"contactMethod": "",
"dateOfBirth": "07/02/1974",
"email": "redacted",
"emergencyContact": "redacted",
"emergencyContactRelationship": "Spouse",
"heightFeet": "6",
"heightInches": "0",
"id_patient": "0C1CDD3A-F09D-49C3-B815-5A660F490362",
"insGroupNumber": "654321",
"insName": "Aetna",
"insPolicyNumber": "E1234567",
"language": "English",
"maritalStatus": "Married",
"nameFirst": "Daniel",
"nameFirstMiddleLast_c": "Daniel Ray Kruse II",
"nameLast": "Kruse II",
"occupation": "Pilot",
"pharmAddress": "123 anystreet here to 77377",
"pharmName": "Cvs",
"pharmPhone": "",
"phoneEmergencyContact": " redacted",
"phoneHome": "222-222-2222",
"phoneInsurance": "redacted",
"phoneMobile": "redacted",
"race": "White, non-Hispanic",
"sex": "M",
"weightLbs": "210"
}, {
"addrCity": "Santa Ana",
"addrDisplay_c": "redacted",
"addrState": "CA",
"addrStreet": "redacted",
"addrZip": "92704",
"age": "43",
"contactMethod": "Phone",
"dateOfBirth": "redacted",
"email": "redacted",
"emergencyContact": "Yo Momma",
"emergencyContactRelationship": "Lover",
"heightFeet": "6",
"heightInches": "2",
"id_patient": "BCD9985A-1335-4163-944E-610A21F93047",
"insGroupNumber": "",
"insName": "",
"insPolicyNumber": "",
"language": "English",
"maritalStatus": "Single",
"nameFirst": "Dallas",
"nameFirstMiddleLast_c": "redacted",
"nameLast": "Kruse",
"occupation": "Musician",
"pharmAddress": "",
"pharmName": "",
"pharmPhone": "",
"phoneEmergencyContact": "444-444-4444",
"phoneHome": "333-333-4444",
"phoneInsurance": "",
"phoneMobile": "333-333-3333",
"race": "White, non-Hispanic",
"sex": "M",
"weightLbs": "242"
}, {
"addrCity": "Anytown",
"addrDisplay_c": "123 Main Street Anytown, CA 90000",
"addrState": "CA",
"addrStreet": "123 Main Street",
"addrZip": "90000",
"age": "33",
"contactMethod": "",
"dateOfBirth": "01/01/1989",
"email": "redacted",
"emergencyContact": "John Doe",
"emergencyContactRelationship": "Friend",
"heightFeet": "5",
"heightInches": "5",
"id_patient": "224EA0F9-9FC7-4BC8-B8C6-C7DF1A9FF41A",
"insGroupNumber": "",
"insName": "",
"insPolicyNumber": "",
"language": "English",
"maritalStatus": "Married",
"nameFirst": "Elsa",
"nameFirstMiddleLast_c": "Elsa Munguia",
"nameLast": "Munguia",
"occupation": "Medical Billing",
"pharmAddress": "",
"pharmName": "",
"pharmPhone": "",
"phoneEmergencyContact": "888-888-8888",
"phoneHome": "redacted",
"phoneInsurance": "",
"phoneMobile": " redacted",
"race": "Hispanic",
"sex": "F",
"weightLbs": "100"
}, {
"addrCity": "München",
"addrDisplay_c": "redacted",
"addrState": "",
"addrStreet": "redacted",
"addrZip": "81737",
"age": "52",
"contactMethod": "",
"dateOfBirth": "redacted",
"email": "redacted",
"emergencyContact": "Sophia Lauren",
"emergencyContactRelationship": "Lover",
"heightFeet": "6",
"heightInches": "1",
"id_patient": "8E09A9E2-3623-49FC-946F-CC0CE00C7A30",
"insGroupNumber": "",
"insName": "",
"insPolicyNumber": "",
"language": "English",
"maritalStatus": "Single",
"nameFirst": "Benedick",
"nameFirstMiddleLast_c": "redacted",
"nameLast": "Miller",
"occupation": "Developer",
"pharmAddress": "",
"pharmName": "",
"pharmPhone": "",
"phoneEmergencyContact": "444-444-4444",
"phoneHome": "222-222-2222",
"phoneInsurance": "",
"phoneMobile": "111-111-1111",
"race": "White, non-Hispanic",
"sex": "M",
"weightLbs": "190"
}]
},
"case": [],
"company": {
"addrDisplay_c": "redacted",
"addrState": "CA",
"companyName": "Weston Medical",
"email": "redacted",
"facebook": "https://www.facebook.com",
"id_company": "02848995-C537-4271-A9C9-766B61A5BC10",
"instagram": "https://www.instagram.com",
"phone": " redacted",
"phoneFax": " redacted",
"twitter": "https://www.twitter.com",
"website": "https://www.westonmedical.org"
},
"lang": "English",
"patient": []
}