Remove HSRNUMBER from model and api schema

This commit is contained in:
mike cullerton 2021-08-16 10:09:18 -04:00
parent c7a0196a38
commit ec916c274b
2 changed files with 1 additions and 6 deletions

View File

@ -184,10 +184,6 @@ components:
type: number
example: 11770
description: The unique id of the study in Protocol Builder. Sometimes referenced as the "HSR Submission number" if you are looking at Protocol Builder
HSRNUMBER:
type: number
example: 15378
description: This is the number users use to lookup and reference when talking about non SOM protocols in IRB Online and displayed in more documentation. Its only used in IRB Online. Its not an auto increment.
TITLE:
type: string
format: string

View File

@ -66,7 +66,6 @@ class StudySponsorSchema(ma.Schema):
class Study(db.Model):
STUDYID = db.Column(db.Integer, primary_key=True)
HSRNUMBER = db.Column(db.String())
TITLE = db.Column(db.Text(), nullable=False)
NETBADGEID = db.Column(db.String(), nullable=False)
DATE_MODIFIED = db.Column(db.DateTime(timezone=True), default=func.now())
@ -81,7 +80,7 @@ class Study(db.Model):
class StudySchema(ma.Schema):
class Meta:
# Fields to expose
fields = ("STUDYID", "HSRNUMBER", "TITLE", "NETBADGEID",
fields = ("STUDYID", "TITLE", "NETBADGEID",
"DATE_MODIFIED")