-
-
Notifications
You must be signed in to change notification settings - Fork 3
clinic sites #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
clinic sites #159
Changes from 10 commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
6278347
clinic sites
ewollesen cd11077
revert sites endpoints that return lists of sites
ewollesen c285dd3
revert patient tags endpoints that return lists of patient tags
ewollesen b8d1d34
sites passed at patient creation should include name and id
ewollesen 75ab9b0
sites in patients shouldn't be a pointer to a slice
ewollesen 9af9592
use new x-omitzero from oapi-codegen for clinic sites
ewollesen 888e079
removes patient counts from sites
ewollesen 0ff0c4d
add a site merge endpoint for clinics
ewollesen 139f95e
add a patient tag to site conversion endpoint
ewollesen 755d1b4
clinic sites cleanups requested in code review
ewollesen 7ced615
fix an issue with siteid path parameters
ewollesen File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| type: object | ||
| title: Site | ||
| description: "A clinic's physical or logical location." | ||
| properties: | ||
| id: | ||
| $ref: ./siteId.v1.yaml | ||
| name: | ||
| $ref: ./siteName.v1.yaml | ||
| required: | ||
| - id | ||
| - name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| type: object | ||
| title: SiteById | ||
| description: "A clinic's physical or logical location—id only." | ||
| properties: | ||
| id: | ||
| $ref: ../../../reference/common/models/objectid.v1.yaml | ||
darinkrauss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| required: | ||
| - id | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| type: object | ||
| title: Site | ||
| description: "A clinic's physical or logical location." | ||
| properties: | ||
| name: | ||
| $ref: ./siteName.v1.yaml | ||
| required: | ||
| - name |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| # Site id is a mongodb objectid, but not a pointer (like objectid.v1.yaml). | ||
| allOf: | ||
| - $ref: ../../common/models/objectid.v1.yaml | ||
| - x-go-type-skip-optional-pointer: true | ||
| x-go-type: string # otherwise oapi-codegen will generate interface{} | ||
| readOnly: true # can't merge with objectid without this matching |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| type: array | ||
| title: Site ID List | ||
| uniqueItems: true | ||
| nullable: true | ||
| items: | ||
darinkrauss marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| $ref: ./siteId.v1.yaml | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| type: string | ||
| x-go-type-skip-optional-pointer: true | ||
| description: The site's name. | ||
| minLength: 1 | ||
| maxLength: 200 | ||
| pattern: '^[[:graph:]\p{L}\p{N}][[:graph:]\p{L}\p{N} ]*$' |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.