Skip to content

Data structure

tas12 edited this page May 22, 2016 · 2 revisions

Proposed data structure

2 collections:

  • Content
  • Users

(storage of screening results has not yet been considered)

Content collection

 [
  {
    'About': [
      { 'subtitle': 'What',
        'paragraphs': ['Mind aid is a resource for teachers to...']
      }
    ]
  },
  {
    'listen': [
      'listen non-judgmentally and empathically gather',
      'gather Information, ask open questions, don\'t push',
      'assess people\'s risk of harm, Self-harm or Suicide',
      'tell them useful information about their problem, reassure',
      'encouraging self-help and other support strategies',
      'not alone, follow up and direct to appropriate professional help'
    ]
  },
  {
    'conversation_starters': [
      'Can you tell me a bit more about what happened?',
      'How were you feeling at the time?',
      'How are you feeling about it now?'
    ]
  },
  {
    'learn': [
      {
        'category': 'The Aggressive/Difficult Child',
        'things_to_know': []
      },
      {
        'category': 'The Sad And Isolated Child',
        'things_to_know': ['Young people get sad, tearful, and lonely. This is entirely normal, and to be expected.']
      }
    ]
  },
  {
    'questions': [
      'Considerate of other people\'s feelings',
      'Restless, overactive, cannot stay still for long'
    ]
  },
  {
    'refer': [
      {
        'section': 'emergency',
        'location': 'national',
        'info': [
          {
            'phone': '999',
            'link': 'dkjflk.com',
            'advice': 'Go to their nearest Accident and Emergency (A&E)'
          }
        ]
      },
      {
        'section': 'nhs',
        'location': 'national',
        'info': {
          'phone': '111',
          'link': 'www.nhsdirect.nhs.uk',
          'advice': 'They can tell you about your local crisis support services, and also offer health advice 24 hours a day, 365 days a year'
        }
      },
      {
        'section': 'in_school',
        'location': 'local',
        'info': [
          {
            'name': 'Mrs Jain',
            'position': 'SENCO',
            'description': 'Offers consultations about children you are concerned about any morning 9-12',
            'email': 'MJain@school.ac.uk',
            'phone': '07123456789'
          }
        ]
      },
      {
        'section': 'in_community',
        'location': 'local',
        'info': [
          {
            'name': 'Zoe',
            'position': 'Primary Mental Health Worker (PMHW)',
            'description': ' in school fortnightly on Thursdays',
            'email': 'zoe@school.ac.uk',
            'phone': '',
            'link': 'http://www.youngminds.org.uk/contact'
          }
        ]
      },
      {
        'section': 'self_referral',
        'location': 'local',
        'info': [
          {
            'service_name': 'Surrey East Young People Walk in Service',
            'description': 'Drop in charity provision for mental health',
            'email': 'surrey@surrey.com',
            'links': [
              {
                'name': 'Parents and Youth Info',
                'link': 'camhs.org'
              }
            ]
          }
        ]
      }
    ]
  }
]

Users collection

[{
  'users': [
    {
      'name': 'helen',
      'position': 'helen',
      'email': 'helen@helen.com',
      'password': 'password',
      'access_level': 3
    },
    {
      'name': 'rob',
      'position': 'SENCO',
      'email': 'rob@rob.com',
      'password': 'password',
      'access_level': 2
    },
    {
      'name': 'sam',
      'position': 'Teacher',
      'email': 'sam@sam.com',
      'password': 'password',
      'access_level': 1
    }
  ]
}]

Clone this wiki locally