Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions reference/clinic/models/patientTag.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ properties:
minLength: 1
maxLength: 20
pattern: '^[\p{L}\p{N}_+><-]{1}[\p{L}\p{N}\s_+><-]*$'
patients:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would strongly recommend patient_count. To me (and in other areas in our API) patients is a list of patient or patient-type objects.

type: integer
x-go-type-skip-optional-pointer: true
x-omitzero: true
required:
- id
- name
4 changes: 4 additions & 0 deletions reference/clinic/models/site.v1.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ properties:
$ref: ./siteId.v1.yaml
name:
$ref: ./siteName.v1.yaml
patients:
type: integer
x-go-type-skip-optional-pointer: true
x-omitzero: true
required:
- id
- name