feature: Clinical Data Model Expansion & Observation Vocabulary

This commit is contained in:
voltsrage
2026-06-18 15:00:42 +08:00
parent 3b4c5c524b
commit 7d630fbbd9
33 changed files with 2636 additions and 36 deletions
@@ -0,0 +1,61 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace VigilCareClinicalAPI.Migrations
{
/// <inheritdoc />
public partial class AddPatientClinicalDemographics : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AddColumn<string>(
name: "allergies",
table: "patients",
type: "text",
nullable: true);
migrationBuilder.AddColumn<string>(
name: "blood_type",
table: "patients",
type: "character varying(5)",
maxLength: 5,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "emergency_contact_name",
table: "patients",
type: "character varying(200)",
maxLength: 200,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "emergency_contact_phone",
table: "patients",
type: "character varying(20)",
maxLength: 20,
nullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "allergies",
table: "patients");
migrationBuilder.DropColumn(
name: "blood_type",
table: "patients");
migrationBuilder.DropColumn(
name: "emergency_contact_name",
table: "patients");
migrationBuilder.DropColumn(
name: "emergency_contact_phone",
table: "patients");
}
}
}