JSFiddle - React, Tailwind, and code Playground

by Avi Algaly

JavaScript

const json = [
  {
    instituteInitials: 'CUIMC',
    operatorName: 'Avi Tech',
    operatorId: {
      id: 3,
      firstName: 'Avi',
      lastName: 'Tech',
      email: '[email protected]',
      role: [Object]
    },
    instituteId: '65e75243ab82a158b314464c',
    instituteName: 'COLUMBIA UNIVERSITY IRVING MEDICAL CENTER',
    dOB: '08/03/2022',
    patientId: '024014441',
    physicianId: 1,
    measuredFoot: 1,
    wound: { id: 0, info: 'No ulcer or gangrene (ischemic pain at rest)' },
    ischemia: { id: 0, info: [1,2,3,4] },
    infection: {
      id: 2,
      info: 'Moderate local infection, with erythema > 2 cm or involving deeper structures'
    },
    comments: 'comments comments comments comments comments comments ',
    pastAmputation: 1,
    amputationComments: 'Amputation Comments\n\n'
  },
  { index: 0, answers: [ true, false, true, true ] },
  { index: 1, answers: [ false, false, true, true, false ] },
  { index: 2, answers: [ false, false, true ] },
  { index: 3, answers: [ false, false, true ] },
  { index: 4, answers: [ true, 'Elsewhere' ] },
  { index: 5, answers: [ true, true ] },
  {
    index: 6,
    answers: [
      false, false,
      false, false,
      true,  false,
      false, false
    ]
  },
  {
    index: 7,
    answers: [
      'Location',
      'bed photograph here (Not av',
      'pressure',
      'Amplitude at maximum TPP'
    ]
  },
  { index: 8, answers: [ 'Location', 'Size', '' ] },
  {
    index: 9,
    answers: [
      "se precise anatomic and pathologic descriptions rather than 'burning of the feet', 'pain in the limb', or 'edema')\n"
    ]
  }
]
console.log(JSON.stringify(json))