src/platform/mhv/api/mocks/secure-messaging/threads/inboxThreads.js
const { sub, formatISO } = require('date-fns');
const inboxThreads = {
data: [
{
id: '3550425',
type: 'message_threads',
attributes: {
threadId: 3550425,
folderId: 0,
messageId: 3550426,
threadPageSize: 19,
messageCount: 2,
category: 'OTHER',
subject: 'General Inquiry',
triageGroupName: 'DETROIT: Dermatology, Bishop, Walter, Md',
sentDate: `${formatISO(sub(new Date(), { days: 10 }))}`,
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3550425',
},
},
{
id: '3549573',
type: 'message_threads',
attributes: {
threadId: 3549573,
folderId: 0,
messageId: 3549585,
threadPageSize: 19,
messageCount: 3,
category: 'OTHER',
subject: 'TEST',
triageGroupName: 'DETROIT: MHV Coordinator, Prince, Diana',
sentDate: `${formatISO(sub(new Date(), { days: 12 }))}`,
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3549573',
},
},
{
id: '3400518',
type: 'message_threads',
attributes: {
threadId: 3400518,
folderId: 0,
messageId: 3400519,
threadPageSize: 19,
messageCount: 1,
category: 'OTHER',
subject: 'General Inquiry',
triageGroupName: 'DETROIT: Cardiology, Yang, Christina, Md',
sentDate: `${formatISO(sub(new Date(), { days: 16 }))}`,
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3400518',
},
},
{
id: '3258312',
type: 'message_threads',
attributes: {
threadId: 3258312,
folderId: 0,
messageId: 3258313,
threadPageSize: 19,
messageCount: 1,
category: 'OTHER',
subject: 'General Inquiry',
triageGroupName: 'DETROIT: Audiology, House, Gregory, Md',
sentDate: `${formatISO(sub(new Date(), { days: 20 }))}`,
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3258312',
},
},
{
id: '3258247',
type: 'message_threads',
attributes: {
threadId: 3258247,
folderId: 0,
messageId: 3258248,
threadPageSize: 19,
messageCount: 2,
category: 'OTHER',
subject: 'General Inquiry',
triageGroupName: 'DETROIT: Audiology, House, Gregory, Md',
sentDate: '2024-01-09T19:28:27.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3258247',
},
},
{
id: '3004675',
type: 'message_threads',
attributes: {
threadId: 3004675,
folderId: 0,
messageId: 3004701,
threadPageSize: 19,
messageCount: 5,
category: 'TEST_RESULTS',
subject: 'Test Results',
triageGroupName: '** DETROIT: Primary Care, Lydon, John R. Md',
sentDate: '2023-09-07T14:55:42.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: true,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004675',
},
},
{
id: '3004666',
type: 'message_threads',
attributes: {
threadId: 3004666,
folderId: 0,
messageId: 3004667,
threadPageSize: 19,
messageCount: 1,
category: 'TEST_RESULTS',
subject: 'Test Result',
triageGroupName: '** DETROIT: Primary Care, Lydon, John R. Md',
sentDate: '2023-09-07T14:50:00.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004666',
},
},
{
id: '3004660',
type: 'message_threads',
attributes: {
threadId: 3004660,
folderId: 0,
messageId: 3004661,
threadPageSize: 19,
messageCount: 1,
category: 'APPOINTMENTS',
subject: 'Appointment Follow-up',
triageGroupName: 'DETROIT: Cardiology, Yang, Christina, Md',
sentDate: '2023-09-07T14:48:34.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004660',
},
},
{
id: '3004640',
type: 'message_threads',
attributes: {
threadId: 3004640,
folderId: 0,
messageId: 3004641,
threadPageSize: 19,
messageCount: 1,
category: 'APPOINTMENTS',
subject: 'Annual physical',
triageGroupName: '** DETROIT: Primary Care, Lydon, John R. Md',
sentDate: '2023-09-07T14:40:52.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004640',
},
},
{
id: '3004631',
type: 'message_threads',
attributes: {
threadId: 3004631,
folderId: 0,
messageId: 3004632,
threadPageSize: 19,
messageCount: 1,
category: 'MEDICATIONS',
subject: 'LOSARTAN 25MG: PRESCRIPTION READY',
triageGroupName: 'DETROIT: Pharmacy',
sentDate: '2023-09-07T14:37:44.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004631',
},
},
{
id: '3004623',
type: 'message_threads',
attributes: {
threadId: 3004623,
folderId: 0,
messageId: 3004624,
threadPageSize: 19,
messageCount: 1,
category: 'MEDICATIONS',
subject: 'LOSARTAN 25MG: DELAYED',
triageGroupName: 'DETROIT: Pharmacy',
sentDate: '2023-09-07T14:35:32.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004623',
},
},
{
id: '3004604',
type: 'message_threads',
attributes: {
threadId: 3004604,
folderId: 0,
messageId: 3004605,
threadPageSize: 19,
messageCount: 1,
category: 'MEDICATIONS',
subject: 'Losartan Refill Sent',
triageGroupName: 'DETROIT: Cardiology, Yang, Christina, Md',
sentDate: '2023-09-07T14:30:46.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004604',
},
},
{
id: '3004592',
type: 'message_threads',
attributes: {
threadId: 3004592,
folderId: 0,
messageId: 3004593,
threadPageSize: 19,
messageCount: 1,
category: 'MEDICATIONS',
subject: 'Losartan Refill Request',
triageGroupName: '** DETROIT: Primary Care, Lydon, John R. Md',
sentDate: '2023-09-07T14:23:25.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004592',
},
},
{
id: '3004580',
type: 'message_threads',
attributes: {
threadId: 3004580,
folderId: 0,
messageId: 3004581,
threadPageSize: 19,
messageCount: 1,
category: 'EDUCATION',
subject: 'My HealtheVet Training for Newcomers',
triageGroupName: 'DETROIT: MHV Coordinator, Prince, Diana',
sentDate: '2023-09-07T14:12:32.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004580',
},
},
{
id: '3004564',
type: 'message_threads',
attributes: {
threadId: 3004564,
folderId: 0,
messageId: 3004565,
threadPageSize: 19,
messageCount: 1,
category: 'COVID',
subject: 'Covid Cases Increasing',
triageGroupName: '** DETROIT: Primary Care, Lydon, John R. Md',
sentDate: '2023-09-07T14:08:22.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004564',
},
},
{
id: '3004550',
type: 'message_threads',
attributes: {
threadId: 3004550,
folderId: 0,
messageId: 3004551,
threadPageSize: 19,
messageCount: 1,
category: 'OTHER',
subject: 'Flu Shot Clinic',
triageGroupName: '** DETROIT: Primary Care, Lydon, John R. Md',
sentDate: '2023-09-07T14:01:58.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004550',
},
},
{
id: '3004544',
type: 'message_threads',
attributes: {
threadId: 3004544,
folderId: 0,
messageId: 3004545,
threadPageSize: 19,
messageCount: 1,
category: 'OTHER',
subject: 'Flu Shot Clinic',
triageGroupName: '** DETROIT: Primary Care, Lydon, John R. Md',
sentDate: '2023-09-07T14:00:24.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004544',
},
},
{
id: '3004521',
type: 'message_threads',
attributes: {
threadId: 3004521,
folderId: 0,
messageId: 3004536,
threadPageSize: 19,
messageCount: 22,
category: 'TEST_RESULTS',
subject: 'EKG Results',
triageGroupName: 'DETROIT: Cardiology, Yang, Christina, Md',
sentDate: '2023-09-07T13:57:20.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: true,
unsentDrafts: false,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004521',
},
},
{
id: '3004415',
type: 'message_threads',
attributes: {
threadId: 3004415,
folderId: 0,
messageId: 3004527,
threadPageSize: 19,
messageCount: 2,
category: 'APPOINTMENTS',
subject: 'Appointment Request',
triageGroupName: 'DETROIT: Audiology, House, Gregory, Md',
sentDate: '2023-09-07T13:55:13.000Z',
draftDate: null,
senderId: 2992380,
senderName: 'COSTELLO, ANNE M',
recipientName: 'LEE, JAMIE ',
recipientId: 2991831,
proxySenderName: null,
hasAttachment: false,
unsentDrafts: true,
unreadMessages: false,
},
links: {
self: 'http://127.0.0.1:3000/my_health/v1/messaging/threads/3004415',
},
},
],
};
module.exports = {
inboxThreads,
};