Git Product home page Git Product logo

epidemiological-survey-post-analysis's Introduction

epidemiological-survey-post-analysis

传染病流行性调查结果分析

用于传染病流行性调查结果的转换、表示、分析和可视化。

Schema 数据表示方法

interface SurveyResult {
{
    disesase: string,    // 传染病名称,如 "COVID-19",
    round: string,       // 疫情轮次,通常为`年-月`,或其他唯一标识
    cases: SurveyCase[], // 病例
};
interface SurveyCase {
    index: SurveyCaseIndex,     // 病例编号
    job?: string,               // 职业
    gender?: 'male'|'female',   // 性别
    addresses: SurveyCaseAddress[], // 地址 
    timeline: SurveyCaseTimelineItem[], // 病例行动时间线
    conclusion?: SurveyCaseConclusion, // 病例结论
}
interface SurveyCaseAddress{
    type: 'home'|'work'|'other', // 地址类型
    address: string,             // 地址
}
interface SurveyCaseTimelineItem{
    startAt: number, // 开始时间,Unix时间戳
    endAt: number,   // 结束时间,Unix时间戳
    location: string, // 地点
    action: string,   // 行为, 如购物、吃饭、出行等
}
interface SurveyCaseConclusion {
    type: 'diagnosed'|'symptomless'|'unknown', // 病例类型: diagnosed:确诊、symptomless:无症状、unknown:未知
    contacts: SurveyCaseContact[], // 有关联的病例列表
}
type SurveyCaseIndex = number;
interface SurveyCaseContact {
    index: SurveyCaseIndex, // 病例编号
    type: 'close'|'area'|'unknown', // 关联类型: close:密切接触、area:同区域、unknown:未知
}

Transform 数据转换

  1. TODO 将政府发布的自然语言流调报告,转换为本项目Schema格式的数据。

Analysis 分析

  1. TODO 自动填充 SurveyCase.conclusion.contacts
  2. TODO 任选一个病例,找到其可能被哪个病例直接传染。
  3. TODO 任选一个病例,找到其可能直接传染给了哪些病例。
  4. TODO 任选两个病例,找到其之间传染联系。

Visualization 可视化

  1. TODO 生成病例传染图。

epidemiological-survey-post-analysis's People

Contributors

zgldh avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.