|
| 1 | +from django.utils.translation import gettext_lazy as _ |
| 2 | + |
| 3 | + |
1 | 4 | class docs: |
2 | 5 | # Centralized namespace for all NPD API documentation content |
3 | 6 |
|
4 | 7 | class constants: |
5 | 8 | # Constant strings that appear throughout content building |
6 | 9 |
|
7 | | - sort_order_text = "Default sort order: " |
| 10 | + sort_order_text = _("Default sort order: ") |
8 | 11 |
|
9 | 12 | class filters: |
10 | 13 | # Help text for filter parameters, organized by FHIR resource |
11 | 14 |
|
12 | 15 | class practitioner: |
13 | | - name = ( |
| 16 | + name = _( |
14 | 17 | "Filter by practitioner name (first, middle, last, or full name). " |
15 | 18 | "Name filter accepts websearch syntax." |
16 | 19 | ) |
17 | | - gender = "Filter by practitioner gender" |
18 | | - identifier = ( |
| 20 | + gender = _("Filter by practitioner gender") |
| 21 | + identifier = _( |
19 | 22 | "Filter by practitioner identifier (NPI or other). Format: value or system|value" |
20 | 23 | ) |
21 | | - type = ( |
| 24 | + type = _( |
22 | 25 | "Filter by practitioner type/taxonomy. " |
23 | 26 | "Practitioner type filter accepts websearch syntax." |
24 | 27 | ) |
25 | 28 |
|
26 | 29 | class organization: |
27 | | - name = "Filter by organization name" |
28 | | - identifier = ( |
| 30 | + name = _("Filter by organization name") |
| 31 | + identifier = _( |
29 | 32 | "Filter by organization identifier (NPI, EIN, or other). " |
30 | 33 | "Format: value or system|value" |
31 | 34 | ) |
32 | | - type = "Filter by organization type/taxonomy" |
| 35 | + type = _("Filter by organization type/taxonomy") |
33 | 36 |
|
34 | 37 | class location: |
35 | | - name = "Filter by location name" |
36 | | - near = ( |
| 38 | + name = _("Filter by location name") |
| 39 | + near = _( |
37 | 40 | "Filter by distance from a point expressed as " |
38 | 41 | "[latitude]|[longitude]|[distance]|[units]. " |
39 | 42 | "If no units are provided, km is assumed." |
40 | 43 | ) |
41 | 44 |
|
42 | 45 | class endpoint: |
43 | | - name = "Filter by endpoint name" |
44 | | - connection_type = "Filter by endpoint connection type" |
45 | | - payload_type = "Filter by endpoint payload type" |
46 | | - status = "Filter by endpoint status" |
| 46 | + name = _("Filter by endpoint name") |
| 47 | + connection_type = _("Filter by endpoint connection type") |
| 48 | + payload_type = _("Filter by endpoint payload type") |
| 49 | + status = _("Filter by endpoint status") |
47 | 50 |
|
48 | 51 | class practitioner_role: |
49 | | - active = "Filter by active status" |
50 | | - role = "Filter by provider role code" |
51 | | - specialty = "Filter by Nucc/Snomed specialty code" |
| 52 | + active = _("Filter by active status") |
| 53 | + role = _("Filter by provider role code") |
| 54 | + specialty = _("Filter by Nucc/Snomed specialty code") |
52 | 55 |
|
53 | 56 | class address: |
54 | | - full = "Filter by any part of address. Address filter accepts websearch syntax." |
55 | | - city = "Filter by city name" |
56 | | - state = "Filter by state (2-letter abbreviation)" |
57 | | - postalcode = "Filter by postal code/zip code" |
58 | | - use = "Filter by address use type" |
| 57 | + full = _("Filter by any part of address. Address filter accepts websearch syntax.") |
| 58 | + city = _("Filter by city name") |
| 59 | + state = _("Filter by state (2-letter abbreviation)") |
| 60 | + postalcode = _("Filter by postal code/zip code") |
| 61 | + use = _("Filter by address use type") |
59 | 62 |
|
60 | 63 | class endpoints: |
61 | 64 | # Descriptions for API endpoints |
62 | 65 |
|
63 | 66 | class practitioner: |
64 | | - viewset = "ViewSet for FHIR Practitioner resources" |
65 | | - list_description = ( |
| 67 | + viewset = _("ViewSet for FHIR Practitioner resources") |
| 68 | + list_description = _( |
66 | 69 | "Query a list of healthcare providers, represented as a " |
67 | 70 | "bundle of FHIR Practitioner resources" |
68 | 71 | ) |
69 | | - default_sort = "ascending last name, first name" |
70 | | - retrieve_description = "Query a specific provider as a FHIR Practitioner resource" |
71 | | - list_response = ( |
| 72 | + default_sort = _("ascending last name, first name") |
| 73 | + retrieve_description = _("Query a specific provider as a FHIR Practitioner resource") |
| 74 | + list_response = _( |
72 | 75 | "Successfully retrieved FHIR Bundle resource of FHIR Practitioner resources" |
73 | 76 | ) |
74 | | - retrieve_response = "Successfully retrieved FHIR Practitioner resource" |
| 77 | + retrieve_response = _("Successfully retrieved FHIR Practitioner resource") |
75 | 78 |
|
76 | 79 | class practitioner_role: |
77 | | - viewset = "ViewSet for FHIR PractitionerRole resources" |
78 | | - list_description = ( |
| 80 | + viewset = _("ViewSet for FHIR PractitionerRole resources") |
| 81 | + list_description = _( |
79 | 82 | "Query a list of relationships between providers, healthcare " |
80 | 83 | "organizations, and practice locations, represented as a " |
81 | 84 | "bundle of FHIR PractitionerRole resources" |
82 | 85 | ) |
83 | | - default_sort = "ascending by location name" |
84 | | - retrieve_description = ( |
| 86 | + default_sort = _("ascending by location name") |
| 87 | + retrieve_description = _( |
85 | 88 | "Query a specific relationship between providers, healthcare " |
86 | 89 | "organizations, and practice locations, represented as a " |
87 | 90 | "FHIR PractitionerRole resource" |
88 | 91 | ) |
89 | | - list_response = ( |
| 92 | + list_response = _( |
90 | 93 | "Successfully retrieved FHIR Bundle resource of FHIR PractitionerRole resources" |
91 | 94 | ) |
92 | | - retrieve_response = "Successfully retrieved FHIR PractitionerRole resource" |
| 95 | + retrieve_response = _("Successfully retrieved FHIR PractitionerRole resource") |
93 | 96 |
|
94 | 97 | class organization: |
95 | | - viewset = "ViewSet for FHIR Organization resources" |
96 | | - list_description = ( |
| 98 | + viewset = _("ViewSet for FHIR Organization resources") |
| 99 | + list_description = _( |
97 | 100 | "Query a list of organizations, represented as a bundle " |
98 | 101 | "of FHIR Organization resources" |
99 | 102 | ) |
100 | | - default_sort = "ascending by organization name" |
101 | | - retrieve_description = ( |
| 103 | + default_sort = _("ascending by organization name") |
| 104 | + retrieve_description = _( |
102 | 105 | "Query a specific organization, represented as a FHIR Organization resource" |
103 | 106 | ) |
104 | | - list_response = ( |
| 107 | + list_response = _( |
105 | 108 | "Successfully retrieved FHIR Bundle resource of FHIR Organization resources" |
106 | 109 | ) |
107 | | - retrieve_response = "Successfully retrieved FHIR Organization resource" |
| 110 | + retrieve_response = _("Successfully retrieved FHIR Organization resource") |
108 | 111 |
|
109 | 112 | class organization_affiliation: |
110 | | - viewset = "ViewSet for FHIR EHR Vendor to Organization relationships" |
111 | | - list_description = ( |
| 113 | + viewset = _("ViewSet for FHIR EHR Vendor to Organization relationships") |
| 114 | + list_description = _( |
112 | 115 | "Query a list of EHR vendor to organization relationships, " |
113 | 116 | "represented as a bundle of FHIR OrganizationAffiliation " |
114 | 117 | "resources" |
115 | 118 | ) |
116 | | - default_sort = "ascending by organization name" |
117 | | - retrieve_description = ( |
| 119 | + default_sort = _("ascending by organization name") |
| 120 | + retrieve_description = _( |
118 | 121 | "Query a specific EHR vendor to organization relationship, " |
119 | 122 | "represented as a FHIR OrganizationAffiliation resource" |
120 | 123 | ) |
121 | | - list_response = ( |
| 124 | + list_response = _( |
122 | 125 | "Successfully retrieved FHIR Bundle resource of " |
123 | 126 | "FHIR OrganizationAffiliation resources" |
124 | 127 | ) |
125 | | - retrieve_response = "Successfully retrieved FHIR OrganizationAffiliation resource" |
| 128 | + retrieve_response = _("Successfully retrieved FHIR OrganizationAffiliation resource") |
126 | 129 |
|
127 | 130 | class location: |
128 | | - viewset = "ViewSet for FHIR Location resources" |
129 | | - list_description = ( |
| 131 | + viewset = _("ViewSet for FHIR Location resources") |
| 132 | + list_description = _( |
130 | 133 | "Query a list of healthcare practice locations, represented " |
131 | 134 | "as a bundle of FHIR Location resources" |
132 | 135 | ) |
133 | | - default_sort = "ascending by location name" |
134 | | - retrieve_description = ( |
| 136 | + default_sort = _("ascending by location name") |
| 137 | + retrieve_description = _( |
135 | 138 | "Query a specific healthcare practice location as a FHIR Location resource" |
136 | 139 | ) |
137 | | - list_response = "Successfully retrieved FHIR Bundle resource of FHIR Location resources" |
138 | | - retrieve_response = "Successfully retrieved FHIR Location resource" |
| 140 | + list_response = _( |
| 141 | + "Successfully retrieved FHIR Bundle resource of FHIR Location resources" |
| 142 | + ) |
| 143 | + retrieve_response = _("Successfully retrieved FHIR Location resource") |
139 | 144 |
|
140 | 145 | class endpoint: |
141 | | - viewset = "ViewSet for FHIR Endpoint resources" |
142 | | - list_description = ( |
| 146 | + viewset = _("ViewSet for FHIR Endpoint resources") |
| 147 | + list_description = _( |
143 | 148 | "Query a list of interoperability endpoints, represented " |
144 | 149 | "as a bundle of FHIR Endpoint resources" |
145 | 150 | ) |
146 | | - default_sort = "ascending by endpoint instance name" |
147 | | - retrieve_description = "Query a specific endpoint as a FHIR Endpoint resource" |
148 | | - list_response = "Successfully retrieved FHIR Bundle resource of FHIR Endpoint resources" |
149 | | - retrieve_response = "Successfully retrieved FHIR Endpoint resource" |
| 151 | + default_sort = _("ascending by endpoint instance name") |
| 152 | + retrieve_description = _("Query a specific endpoint as a FHIR Endpoint resource") |
| 153 | + list_response = _( |
| 154 | + "Successfully retrieved FHIR Bundle resource of FHIR Endpoint resources" |
| 155 | + ) |
| 156 | + retrieve_response = _("Successfully retrieved FHIR Endpoint resource") |
150 | 157 |
|
151 | 158 | class capability_statement: |
152 | | - viewset = "ViewSet for FHIR CapabilityStatement resource" |
153 | | - get_description = ( |
| 159 | + viewset = _("ViewSet for FHIR CapabilityStatement resource") |
| 160 | + get_description = _( |
154 | 161 | "Query metadata about this FHIR instance, represented as " |
155 | 162 | "FHIR CapabilityStatement resource" |
156 | 163 | ) |
157 | | - get_response = "Successfully retrieved FHIR CapabilityStatement resource" |
| 164 | + get_response = _("Successfully retrieved FHIR CapabilityStatement resource") |
0 commit comments