my-health-care
테이블 (8)
공유 영수증 (my_health_care_share_receipt)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- ObjectId (receipt_id) — ObjectId — 외래 키 → 영수증.ObjectId — NOT NULL — my_health_care_receipt Object ID
- ObjectId (organization_id) — ObjectId — 외래 키 → 마이헬스케어 기관.ObjectId — NOT NULL — my_health_care_organizations Object ID
- Field (provide_data) — String — NOT NULL — 제공 데이터 항목
- Field (shared_for) — String — NOT NULL — 공유 목적
- DateField (createdAt) — Date — NOT NULL — 내려받기 영수증 생성일시
- DateField (updatedAt) — Date — NOT NULL — 수정일시
내려받기 영수증 (my_health_care_download_receipt)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- ObjectId (receipt_id) — ObjectId — 외래 키 → 영수증.ObjectId — NOT NULL — my_health_care_receipt Object ID
- Field (data_format) — String — NOT NULL — 데이터 형식(csv)
- Field (provide_data) — String — NOT NULL — 제공 데이터 항목
- Field (start_date) — Date — NOT NULL — 내려받기 데이터 시작 일시
- Field (end_date) — Date — NOT NULL — 내려받기 데이터 종료 일시
- DateField (createdAt) — Date — NOT NULL — 내려받기 영수증 생성일시
- DateField (updatedAt) — Date — NOT NULL — 수정일시
동의 영수증 (my_health_care_agreement_receipt)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- ObjectId (receipt_id) — ObjectId — 외래 키 → 영수증.ObjectId — NOT NULL — my_health_care_receipt Object ID
- Field (agreement_type) — String — NOT NULL — 영수증 타입(AR : 동의/ DR: 내려받기/ SR: 공유)
- Field (provide_data) — String — NOT NULL — 제공 데이터 항목
- Field (use_for) — String — NOT NULL — 개인데이터 활용 목적
- DateField (createdAt) — Date — NOT NULL — 동의 생성일시
- DateField (updatedAt) — Date — NOT NULL — 수정일시
마이헬스케어 기관 (my_health_care_organizations)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- Field (org_name) — String — NOT NULL — 기관명
- Field (secret_id) — String — NOT NULL — 기관 고유 식별 ID
- Field (secret_key) — String — NOT NULL — 암호화 된 기관 비밀 키
- Field (use_for) — String — NOT NULL — 데이터 사용 목적(예: 맞춤형 코칭 제공)
마이헬스케어 동의 유저 (my_health_care_users)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- ObjectId (hero_id) — ObjectId — NOT NULL — 닥터다이어리 앱 유저 ID
- Field (user_ci) — String — NOT NULL — 암호화 된 유저 CI
- Field (gender) — String — NOT NULL — 성별 male | female
- Field (birth_year) — Int — NOT NULL — 출생년도 YYYY
- Field (agreed_field) — String[] — NOT NULL — 제공 동의 데이터 cgm | glucose | blood_pressure | weight
- DateField (createdAt) — Date — NOT NULL — 연동 생성일시
- DateField (updatedAt) — Date — NOT NULL — 수정일시
- DateField (deleatedAt) — Date — 삭제일시, 삭제 여부
마이헬스케어 동의 철회 사유 (my_health_care_delete_reasons)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- ObjectId (user_id) — ObjectId — 외래 키 → 마이헬스케어 동의 유저.ObjectId — NOT NULL — my_health_care_users Object ID
- ObjectId (hero_id) — ObjectId — NOT NULL — 닥터다이어리 유저 heros ID
- DateField (createdAt) — Date — NOT NULL — 연동 생성일시
- DateField (updatedAt) — Date — NOT NULL — 수정일시
- Field (reason_key) — String — NOT NULL — 해지사유(unexpectedService | uncomfortableService | privacyConcern | other
- Field2 (other_reason) — String — 해지 사유 기타
마이헬스케어 유저-기관 매핑 (my_health_care_user_org_mapping)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- ObjectId (organization_id) — ObjectId — 외래 키 → 마이헬스케어 기관.ObjectId — NOT NULL — my_health_care_organizations Object ID
- ObjectId (user_id) — ObjectId — 외래 키 → 마이헬스케어 동의 유저.ObjectId — NOT NULL — my_health_care_users Object ID
- Field (privacy_agreement_version) — Int — NOT NULL — 개인정보 동의 약관 버전
- Field (third_party_agreement_version) — Int — NOT NULL — 제 3자 활용 동의 약관 버전
- Field (created_at) — Date — NOT NULL — 기관 연동일시
- Field (updated_at) — Date — NOT NULL — 연동 수정일시
영수증 (my_health_care_receipt)
- ObjectId (_id) — ObjectId — 기본 키 — NOT NULL — Object ID
- ObjectId (user_id) — ObjectId — 외래 키 → 마이헬스케어 동의 유저.ObjectId — NOT NULL — my_health_care_users Object ID
- Field (receipt_type) — String — NOT NULL — 영수증 타입(AR : 동의/ DR: 내려받기/ SR: 공유)
- Field (receipt_key) — String — NOT NULL — 영수증 번호 YYMMDDNNNN receipt_type과 receipt_key 조합 예) AR2507310001: 2025.07.31 1번째 동의 영수증
- Field (receipt_title) — String — NOT NULL — 영수증 제목 (예 : 공유 내역(가톨릭대학교 서울성모병원)
- DateField (createdAt) — Date — NOT NULL — 영수증 생성일시
- DateField (updatedAt) — Date — NOT NULL — 수정일시