Skip to content

Commit 0866556

Browse files
committed
Merge remote-tracking branch 'spdci/draft' into draft incl encrypted msg jwe spec from dci.
2 parents e496b1d + 325056a commit 0866556

11 files changed

+261
-232
lines changed

LICENSE.md

+201-177
Large diffs are not rendered by default.

build/build_instructions.md

+10-5
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ do
2929

3030
## Building Open API consolidated yaml file
3131
1. Make sure all the yaml file have relative path references are resolved and core_xxx_api_vx.x.x.yaml files have reference to all the required files.
32-
1. Install the swagger command line tool using npm (Note: you may need to use root privileges if installing it globally).
32+
2. Install the swagger command line tool using npm (Note: you may need to use root privileges if installing it globally).
3333

3434
```
3535
sudo npm install -g swagger-cli
3636
```
37-
2. Generate the resolved OpenAPI definition file <br>
37+
3. Generate the resolved OpenAPI definition file <br>
3838
a. Go to the root directory of this repository i.e standards/ <br>
3939
b. Run the build_apis.cmd from standards/ folder <br>
4040
b. Alternatively, Run the following command for each index file in ./standards/ folder. for e.g., <br>
@@ -48,16 +48,21 @@ If the command runs successfully, you should see an output like this for each ap
4848
```
4949
Created registry_core_api_v1.0.0.html from release/yaml/registry_core_api_v1.0.0.yaml
5050
```
51+
4. Install the redocly command line tool using npm (Note: you may need to use root privileges if installing it globally).
5152

52-
3. To create redoc html pages for easy readability
53+
```
54+
sudo npm install -g @redocly/cli
55+
```
56+
57+
5. To create redoc html pages for easy readability
5358

5459
```
55-
redoc build-docs ./src/registry_core_api_v1.0.0.yaml -o ./release/html/registry_core_api_v1.0.0.html
60+
redocly build-docs ./release/yaml/registry_core_api_v1.0.0.yaml -o ./release/html/registry_core_api_v1.0.0.html
5661
```
5762

5863
If the command runs successfully, you should see an output like this for each api index file
5964
```
6065
bundled successfully in: ./release/html/registry_core_api_v1.0.0.html
6166
```
6267

63-
5. Commit the changes and push the updated code to git repo. Create pull requests for teams to collaborate and merge to main branch!
68+
6. Commit the changes and push the updated code to git repo. Create pull requests for teams to collaborate and merge to main branch!

release/html/disburse_core_api_v1.0.0.html

+4-4
Large diffs are not rendered by default.

release/html/mapper_core_api_v1.0.0.html

+1-1
Large diffs are not rendered by default.

release/html/registry_core_api_v1.0.0.html

+4-4
Large diffs are not rendered by default.

release/yaml/disburse_core_api_v1.0.0.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -990,23 +990,23 @@ components:
990990
- alg
991991
- enc
992992
- kid
993-
data:
993+
ciphertext:
994994
type: string
995995
description: This is the result of encrypting the plaintext using the CEK and the IV. It's Base64Url-encoded.
996996
encrypted_key:
997997
type: string
998998
description: The base64-url encoded encrypted key
999-
auth_tag:
999+
tag:
10001000
type: string
10011001
description: 'This is a Base64Url-encoded value that provides evidence of the integrity and authenticity of the ciphertext, Initialization Vector, and Additional Authenticated Data'
10021002
iv:
10031003
type: string
10041004
description: This is a Base64Url-encoded random bit string to be used as the Initialization Vector (IV) when encrypting the plaintext to produce the ciphertext. The size of the IV depends on the encryption algorithm used.
10051005
required:
10061006
- header
1007-
- data
1007+
- ciphertext
10081008
- encrypted_key
1009-
- auth_tag
1009+
- tag
10101010
- iv
10111011
Error:
10121012
description: |

release/yaml/mapper_core_api_v1.0.0.yaml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1734,23 +1734,23 @@ components:
17341734
- alg
17351735
- enc
17361736
- kid
1737-
data:
1737+
ciphertext:
17381738
type: string
17391739
description: This is the result of encrypting the plaintext using the CEK and the IV. It's Base64Url-encoded.
17401740
encrypted_key:
17411741
type: string
17421742
description: The base64-url encoded encrypted key
1743-
auth_tag:
1743+
tag:
17441744
type: string
17451745
description: 'This is a Base64Url-encoded value that provides evidence of the integrity and authenticity of the ciphertext, Initialization Vector, and Additional Authenticated Data'
17461746
iv:
17471747
type: string
17481748
description: This is a Base64Url-encoded random bit string to be used as the Initialization Vector (IV) when encrypting the plaintext to produce the ciphertext. The size of the IV depends on the encryption algorithm used.
17491749
required:
17501750
- header
1751-
- data
1751+
- ciphertext
17521752
- encrypted_key
1753-
- auth_tag
1753+
- tag
17541754
- iv
17551755
Error:
17561756
description: |

release/yaml/registry_core_api_v1.0.0.yaml

+15-15
Original file line numberDiff line numberDiff line change
@@ -924,16 +924,16 @@ components:
924924
type: string
925925
description: |
926926
Standardized codes/values representing diverse Sex categories.
927-
Reference: [ISO/IEC 5218:2022](https://www.iso.org/standard/81682.html)
927+
Reference: [FHIR Administrative Gender](https://build.fhir.org/valueset-administrative-gender.html)
928928
1 : Male
929929
2 : Female
930930
3 : Others
931931
4 : Unknown
932932
enum:
933-
- '1'
934-
- '2'
935-
- '3'
936-
- '4'
933+
- male
934+
- female
935+
- other
936+
- unknown
937937
dci_VitalEvents:
938938
type: string
939939
description: |
@@ -946,12 +946,12 @@ components:
946946
5 : Divorce <br>
947947
6 : Adoption <br>
948948
enum:
949-
- '1'
950-
- '2'
951-
- '3'
952-
- '4'
953-
- '5'
954-
- '6'
949+
- live_birth
950+
- death
951+
- fetal_death
952+
- marriage
953+
- divorce
954+
- adoption
955955
GooglePlusCode:
956956
type: object
957957
description: 'Refer [Plus Codes](https://github.com/google/open-location-code/wiki/Plus-codes-API) for more details'
@@ -2134,23 +2134,23 @@ components:
21342134
- alg
21352135
- enc
21362136
- kid
2137-
data:
2137+
ciphertext:
21382138
type: string
21392139
description: This is the result of encrypting the plaintext using the CEK and the IV. It's Base64Url-encoded.
21402140
encrypted_key:
21412141
type: string
21422142
description: The base64-url encoded encrypted key
2143-
auth_tag:
2143+
tag:
21442144
type: string
21452145
description: 'This is a Base64Url-encoded value that provides evidence of the integrity and authenticity of the ciphertext, Initialization Vector, and Additional Authenticated Data'
21462146
iv:
21472147
type: string
21482148
description: This is a Base64Url-encoded random bit string to be used as the Initialization Vector (IV) when encrypting the plaintext to produce the ciphertext. The size of the IV depends on the encryption algorithm used.
21492149
required:
21502150
- header
2151-
- data
2151+
- ciphertext
21522152
- encrypted_key
2153-
- auth_tag
2153+
- tag
21542154
- iv
21552155
Error:
21562156
description: |

src/common/schema/EncryptedMessage.yaml

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,26 @@ properties:
1212
description: The encryption algorithm used for encrypting the plaintext
1313
kid:
1414
type: string
15-
description: The key identifier for the encryption key
15+
description: The key identifier for the encryption key
1616
required:
17-
- alg
17+
- alg
1818
- enc
1919
- kid
20-
data:
20+
ciphertext:
2121
type: string
2222
description: This is the result of encrypting the plaintext using the CEK and the IV. It's Base64Url-encoded.
2323
encrypted_key:
2424
type: string
2525
description: The base64-url encoded encrypted key
26-
auth_tag:
26+
tag:
2727
type: string
2828
description: This is a Base64Url-encoded value that provides evidence of the integrity and authenticity of the ciphertext, Initialization Vector, and Additional Authenticated Data
2929
iv:
3030
type: string
3131
description: This is a Base64Url-encoded random bit string to be used as the Initialization Vector (IV) when encrypting the plaintext to produce the ciphertext. The size of the IV depends on the encryption algorithm used.
3232
required:
3333
- header
34-
- data
34+
- ciphertext
3535
- encrypted_key
36-
- auth_tag
37-
- iv
36+
- tag
37+
- iv

src/extensions/dci/Sex.yaml

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
type: string
22
description: |
33
Standardized codes/values representing diverse Sex categories.
4-
Reference: [ISO/IEC 5218:2022](https://www.iso.org/standard/81682.html)
4+
Reference: [FHIR Administrative Gender](https://build.fhir.org/valueset-administrative-gender.html)
55
1 : Male
66
2 : Female
77
3 : Others
88
4 : Unknown
99
enum:
10-
- "1"
11-
- "2"
12-
- "3"
13-
- "4"
10+
- "male"
11+
- "female"
12+
- "other"
13+
- "unknown"

src/extensions/dci/VitalEvents.yaml

+6-6
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ description: |
99
5 : Divorce <br>
1010
6 : Adoption <br>
1111
enum:
12-
- "1"
13-
- "2"
14-
- "3"
15-
- "4"
16-
- "5"
17-
- "6"
12+
- "live_birth"
13+
- "death"
14+
- "fetal_death"
15+
- "marriage"
16+
- "divorce"
17+
- "adoption"

0 commit comments

Comments
 (0)