Skip to content

Commit 74ffffd

Browse files
committed
Add extensionAttributes to Study (DDF-RA #629)
1 parent af3e08c commit 74ffffd

3 files changed

Lines changed: 30 additions & 0 deletions

File tree

docs/USDM_API.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9440,6 +9440,14 @@
94409440
],
94419441
"title": "Id"
94429442
},
9443+
"extensionAttributes": {
9444+
"items": {
9445+
"$ref": "#/components/schemas/ExtensionAttribute-Input"
9446+
},
9447+
"type": "array",
9448+
"title": "Extensionattributes",
9449+
"default": []
9450+
},
94439451
"name": {
94449452
"type": "string",
94459453
"minLength": 1,
@@ -9513,6 +9521,14 @@
95139521
],
95149522
"title": "Id"
95159523
},
9524+
"extensionAttributes": {
9525+
"items": {
9526+
"$ref": "#/components/schemas/ExtensionAttribute-Output"
9527+
},
9528+
"type": "array",
9529+
"title": "Extensionattributes",
9530+
"default": []
9531+
},
95169532
"name": {
95179533
"type": "string",
95189534
"minLength": 1,

docs/USDM_API.yaml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6203,6 +6203,12 @@ components:
62036203
format: uuid
62046204
- type: 'null'
62056205
title: Id
6206+
extensionAttributes:
6207+
items:
6208+
$ref: '#/components/schemas/ExtensionAttribute-Input'
6209+
type: array
6210+
title: Extensionattributes
6211+
default: []
62066212
name:
62076213
type: string
62086214
minLength: 1
@@ -6248,6 +6254,12 @@ components:
62486254
format: uuid
62496255
- type: 'null'
62506256
title: Id
6257+
extensionAttributes:
6258+
items:
6259+
$ref: '#/components/schemas/ExtensionAttribute-Output'
6260+
type: array
6261+
title: Extensionattributes
6262+
default: []
62516263
name:
62526264
type: string
62536265
minLength: 1

model/study.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
from typing import List, Literal, Union
22
from pydantic import Field
33
from .api_base_model import ApiBaseModel
4+
from .extension import ExtensionAttribute
45
from .study_definition_document import StudyDefinitionDocument
56
from .study_version import StudyVersion
67
from uuid import UUID
78

89
class Study(ApiBaseModel):
910
id: Union[UUID, None] = None
11+
extensionAttributes: List[ExtensionAttribute] = []
1012
name: str = Field(min_length=1)
1113
description: Union[str, None] = None
1214
label: Union[str, None] = None

0 commit comments

Comments
 (0)