Skip to content

Commit

Permalink
Consistency and style tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
daveih committed Dec 20, 2023
1 parent fcbac16 commit ef36392
Show file tree
Hide file tree
Showing 16 changed files with 27 additions and 27 deletions.
10 changes: 5 additions & 5 deletions model/administration_duration.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
from typing import Literal

class AdministrationDuration(ApiBaseModelWithId):
quantity: Quantity
description: str
durationWillVary: bool
reasonDurationWillVary: str
instanceType: Literal['AdministrationDuration'] = 'AdministrationDuration'
quantity: Quantity
description: str
durationWillVary: bool
reasonDurationWillVary: str
instanceType: Literal['AdministrationDuration'] = 'AdministrationDuration'
10 changes: 5 additions & 5 deletions model/agent_administration.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
from typing import Literal

class AgentAdministration(ApiBaseModelWithIdNameLabelAndDesc):
duration: AdministrationDuration
dose: Quantity
route: Code
frequency: Code
instanceType: Literal['AgentAdministration'] = 'AgentAdministration'
duration: AdministrationDuration
dose: Quantity
route: Code
frequency: Code
instanceType: Literal['AgentAdministration'] = 'AgentAdministration'
2 changes: 1 addition & 1 deletion model/biomedical_concept.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class BiomedicalConcept(ApiBaseModelWithIdNameAndLabel):
reference: str
properties: List[BiomedicalConceptProperty] = []
code: AliasCode
instanceType: Literal['BiomedicalConcept'] = 'BiomedicalConcept'
instanceType: Literal['BiomedicalConcept'] = 'BiomedicalConcept'
2 changes: 1 addition & 1 deletion model/characteristic.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
from .syntax_template import SyntaxTemplate

class Characteristic(SyntaxTemplate):
instanceType: Literal['Characteristic'] = 'Characteristic'
instanceType: Literal['Characteristic'] = 'Characteristic'
2 changes: 1 addition & 1 deletion model/code.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
from .api_base_model import ApiBaseModelWithId
from typing import Literal
from .api_base_model import ApiBaseModelWithId

class Code(ApiBaseModelWithId):
code: str
Expand Down
2 changes: 1 addition & 1 deletion model/eligibility_criteria.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,4 @@ class EligibilityCriteria(SyntaxTemplate):
nextId: Union[str, None] = None
previousId: Union[str, None] = None
contextId: Union[str, None] = None
instanceType: Literal['EligibilityCriteria'] = 'EligibilityCriteria'
instanceType: Literal['EligibilityCriteria'] = 'EligibilityCriteria'
2 changes: 1 addition & 1 deletion model/encounter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ class Encounter(ApiBaseModelWithIdNameLabelAndDesc):
contactModes: List[Code] = []
transitionStartRule: Union[TransitionRule, None] = None
transitionEndRule: Union[TransitionRule, None] = None
instanceType: Literal['Encounter'] = 'Encounter'
instanceType: Literal['Encounter'] = 'Encounter'
4 changes: 2 additions & 2 deletions model/geographic_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
class GeographicScope(ApiBaseModelWithId):
type: Code
code: Union[AliasCode, None] = None
instanceType: Literal['GeographicScope']
instanceType: Literal['GeographicScope'] = 'GeographicScope'

class SubjectEnrollment(GeographicScope):
quantity: str
instanceType: Literal['SubjectEnrollment'] = 'SubjectEnrollment'
instanceType: Literal['SubjectEnrollment'] = 'SubjectEnrollment'
4 changes: 2 additions & 2 deletions model/intercurrent_event.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from .api_base_model import ApiBaseModelWithIdNameLabelAndDesc
from typing import Literal
from .api_base_model import ApiBaseModelWithIdNameLabelAndDesc

class IntercurrentEvent(ApiBaseModelWithIdNameLabelAndDesc):
strategy: str
instanceType: Literal['IntercurrentEvent'] = 'IntercurrentEvent'
instanceType: Literal['IntercurrentEvent'] = 'IntercurrentEvent'
2 changes: 1 addition & 1 deletion model/objective.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
class Objective(SyntaxTemplate):
level: Union[Code, None] = None
endpoints: List[Endpoint] = []
instanceType: Literal['Objective'] = 'Objective'
instanceType: Literal['Objective'] = 'Objective'
2 changes: 1 addition & 1 deletion model/response_code.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Literal
from .api_base_model import ApiBaseModelWithId
from .code import Code
from typing import Literal

class ResponseCode(ApiBaseModelWithId):
isEnabled: bool
Expand Down
2 changes: 1 addition & 1 deletion model/study_amendment.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ class StudyAmendment(ApiBaseModelWithId):
secondaryReasons: List[StudyAmendmentReason] = []
enrollments: List[SubjectEnrollment]
previousId: Union[str, None] = None
instanceType: Literal['StudyAmendment'] = 'StudyAmendment'
instanceType: Literal['StudyAmendment'] = 'StudyAmendment'
2 changes: 1 addition & 1 deletion model/study_design.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ class StudyDesign(ApiBaseModelWithIdNameLabelAndDesc):
dictionaries: List[SyntaxTemplateDictionary] = []
conditions: List[Condition] = []
organizations: List[ResearchOrganization] = []
instanceType: Literal['StudyDesign'] = 'StudyDesign'
instanceType: Literal['StudyDesign'] = 'StudyDesign'
4 changes: 2 additions & 2 deletions model/study_identifier.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
from typing import Literal
from .api_base_model import ApiBaseModelWithId
from .organization import Organization
from typing import Literal

class StudyIdentifier(ApiBaseModelWithId):
studyIdentifier: str
studyIdentifierScope: Organization
instanceType: Literal['StudyIdentifier'] = 'StudyIdentifier'
instanceType: Literal['StudyIdentifier'] = 'StudyIdentifier'
2 changes: 1 addition & 1 deletion model/syntax_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
class SyntaxTemplate(ApiBaseModelWithIdNameLabelAndDesc):
text: str
dictionaryId: Union[str, None] = None
instanceType: Literal['SyntaxTemplate'] = 'SyntaxTemplate'
instanceType: Literal['SyntaxTemplate'] = 'SyntaxTemplate'
2 changes: 1 addition & 1 deletion model/transition_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@

class TransitionRule(ApiBaseModelWithIdNameLabelAndDesc):
text: str
instanceType: Literal['TransitionRule'] = 'TransitionRule'
instanceType: Literal['TransitionRule'] = 'TransitionRule'

0 comments on commit ef36392

Please sign in to comment.