Backend resource · STATIC DECLARATIONS
Allergy Intolerance API reference · mansoq-core-teleicu
Static source contract for Allergy Intolerance: 6 declared or inherited operation mappings, schema/field evidence and authorization/refusal references. Deployment and behavioral review remain explicit.
Static API contract — behavior review pending. Source baseline f6e9f05f76d4.
Enable JavaScript to inspect structured operation, parameter, schema and permission evidence. Download this reference and its evidence.
Declared route and availability
This resource is declared in mansoq-core-teleicu at /api/v1/patient/{patient_external_id}/allergy_intolerance/. verified core mount in config/urls.py This is an alternative core contract, not proof that the primary core uses the same behavior. A registered path and an indexed handler do not prove deployment availability, user permission or production readiness.
Operation map
| Method | Path | Action | Evidence |
|---|---|---|---|
| GET | /api/v1/patient/{patient_external_id}/allergy_intolerance/ |
list | declared/inherited method |
| POST | /api/v1/patient/{patient_external_id}/allergy_intolerance/ |
create | declared/inherited method |
| GET | /api/v1/patient/{patient_external_id}/allergy_intolerance/{external_id}/ |
retrieve | declared/inherited method |
| PUT | /api/v1/patient/{patient_external_id}/allergy_intolerance/{external_id}/ |
update | declared/inherited method |
| PATCH | /api/v1/patient/{patient_external_id}/allergy_intolerance/{external_id}/ |
partial_update | declared/inherited method |
| POST | /api/v1/patient/{patient_external_id}/allergy_intolerance/upsert/ |
upsert | @action declaration |
list · GET
GET /api/v1/patient/{patient_external_id}/allergy_intolerance/ — action list. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | patient_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| query | encounter |
not declared at read site | not established |
response: AllergyIntoleranceReadSpec. Declared fields below; inherited fields are retained in the schema inventory.
| Field | Type | Required | Constraints |
|---|---|---|---|
| meta | dict | false | No extra constraint extracted |
| id | UUID4 | false | No extra constraint extracted |
| clinical_status | str | true | No extra constraint extracted |
| verification_status | str | true | No extra constraint extracted |
| category | str | true | No extra constraint extracted |
| criticality | str | true | No extra constraint extracted |
| code | Coding | true | No extra constraint extracted |
| encounter | UUID4 | true | No extra constraint extracted |
| onset | AllergyIntoleranceOnSetSpec | false | No extra constraint extracted |
| last_occurrence | datetime.datetime | None | false | No extra constraint extracted |
| recorded_date | datetime.datetime | None | false | No extra constraint extracted |
| created_by | dict | None | false | No extra constraint extracted |
| updated_by | dict | None | false | No extra constraint extracted |
| note | str | None | false | No extra constraint extracted |
| allergy_intolerance_type | str | true | No extra constraint extracted |
| created_date | datetime.datetime | true | No extra constraint extracted |
| modified_date | datetime.datetime | true | No extra constraint extracted |
Observed authorization checks: can_view_clinical_data, can_view_encounter_clinical_data. Helper/queryset evidence is included; this is not proof of complete security review.
Declared refusal/error evidence: PermissionDenied: Permission denied to user.
create · POST
POST /api/v1/patient/{patient_external_id}/allergy_intolerance/ — action create. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | patient_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| query | encounter |
not declared at read site | not established |
| body | form_submission |
not declared at read site | not established |
request: AllergyIntoleranceWriteSpec. Declared fields below; inherited fields are retained in the schema inventory.
| Field | Type | Required | Constraints |
|---|---|---|---|
| meta | dict | false | No extra constraint extracted |
| id | UUID4 | false | No extra constraint extracted |
| clinical_status | ClinicalStatusChoices | true | No extra constraint extracted |
| verification_status | VerificationStatusChoices | true | No extra constraint extracted |
| category | CategoryChoices | true | No extra constraint extracted |
| criticality | CriticalityChoices | true | No extra constraint extracted |
| last_occurrence | datetime.datetime | None | false | No extra constraint extracted |
| recorded_date | datetime.datetime | None | false | No extra constraint extracted |
| encounter | UUID4 | true | No extra constraint extracted |
| code | ValueSetBoundCoding[MANSOQ_ALLERGY_CODE_VALUESET.slug] | true | No extra constraint extracted |
| onset | AllergyIntoleranceOnSetSpec | false | No extra constraint extracted |
| allergy_intolerance_type | AllergyIntoleranceTypeOptions | false | No extra constraint extracted |
| note | str | None | false | No extra constraint extracted |
response: AllergyIntoleranceReadSpec. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
Observed authorization checks: can_view_clinical_data, can_view_encounter_clinical_data, can_write_patient_obj. Helper/queryset evidence is included; this is not proof of complete security review.
Declared refusal/error evidence: PermissionDenied: Permission denied to user; PermissionDenied: You do not have permission to create.
retrieve · GET
GET /api/v1/patient/{patient_external_id}/allergy_intolerance/{external_id}/ — action retrieve. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | patient_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
| path | external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| query | encounter |
not declared at read site | not established |
response: AllergyIntoleranceReadSpec. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
Observed authorization checks: can_view_clinical_data, can_view_encounter_clinical_data. Helper/queryset evidence is included; this is not proof of complete security review.
Declared refusal/error evidence: PermissionDenied: Permission denied to user.
update · PUT
PUT /api/v1/patient/{patient_external_id}/allergy_intolerance/{external_id}/ — action update. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | patient_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
| path | external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| query | encounter |
not declared at read site | not established |
request: AllergyIntoleranceUpdateSpec. Declared fields below; inherited fields are retained in the schema inventory.
| Field | Type | Required | Constraints |
|---|---|---|---|
| meta | dict | false | No extra constraint extracted |
| id | UUID4 | false | No extra constraint extracted |
| clinical_status | ClinicalStatusChoices | true | No extra constraint extracted |
| verification_status | VerificationStatusChoices | true | No extra constraint extracted |
| criticality | CriticalityChoices | true | No extra constraint extracted |
| last_occurrence | datetime.datetime | None | false | No extra constraint extracted |
| note | str | None | false | No extra constraint extracted |
| encounter | UUID4 | true | No extra constraint extracted |
| allergy_intolerance_type | AllergyIntoleranceTypeOptions | false | No extra constraint extracted |
response: AllergyIntoleranceReadSpec. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
Observed authorization checks: can_view_clinical_data, can_view_encounter_clinical_data, can_update_encounter_clinical_data. Helper/queryset evidence is included; this is not proof of complete security review.
Declared refusal/error evidence: PermissionDenied: Permission denied to user; PermissionDenied: You do not have permission to update encounter.
partial_update · PATCH
PATCH /api/v1/patient/{patient_external_id}/allergy_intolerance/{external_id}/ — action partial_update. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | patient_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
| path | external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| query | encounter |
not declared at read site | not established |
request: AllergyIntoleranceUpdateSpec. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
response: AllergyIntoleranceReadSpec. Declared fields below; inherited fields are retained in the schema inventory.
The declared field table is shown at its first occurrence in this reference; this operation links the same schema.
Observed authorization checks: can_view_clinical_data, can_view_encounter_clinical_data, can_update_encounter_clinical_data. Helper/queryset evidence is included; this is not proof of complete security review.
Declared refusal/error evidence: PermissionDenied: Permission denied to user; PermissionDenied: You do not have permission to update encounter.
upsert · POST
POST /api/v1/patient/{patient_external_id}/allergy_intolerance/upsert/ — action upsert. static contract extracted; runtime/permission/payload behavior review pending.
Path and deployment-context parameters:
| Location | Parameter | Type | Required |
|---|---|---|---|
| path | patient_external_id | router lookup string; semantic ID validation requires handler/schema review | true |
Directly observed request reads (these do not constitute a complete accepted-payload or requiredness guarantee):
| Location | Field | Declared/inferred read type | Requiredness evidence |
|---|---|---|---|
| body | datapoints |
not declared at read site | not established |
| query | encounter |
not declared at read site | not established |
| body | form_submission |
not declared at read site | not established |
Observed authorization checks: can_view_clinical_data, can_view_encounter_clinical_data, can_update_encounter_clinical_data, can_write_patient_obj. Helper/queryset evidence is included; this is not proof of complete security review.
Explicit response statuses in observed code: 400. Other branches/framework exception handling may differ.
Declared refusal/error evidence: RestFrameworkValidationError: Invalid request data; RestFrameworkValidationError: No datapoints provided; RestFrameworkValidationError: Too many datapoints provided; PermissionDenied: Permission denied to user; PermissionDenied: You do not have permission to update encounter; PermissionDenied: You do not have permission to create.
Conditional gates: conditional/computed expression; inspect pinned declaration comparison settings.MAX_DATAPOINTS_PER_UPSERT.
Integration review checklist
Confirm the installed route and full schema; review authentication, organization/facility scoping, all accepted fields, value-state and date/time semantics, idempotency, pagination, response/exception branches and the allowed correction/reversal workflow. Test positive and negative cases with synthetic data. This source reference does not establish external certification or replace an illustrated user procedure.
Pinned source evidence
Links require access to the private source repository.
- repositories/teleicu/mansoq-core-teleicu/config/api_router.py:435
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/allergy_intolerance.py:52
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:165
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/allergy_intolerance.py:115
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:158
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/allergy_intolerance.py:76
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:327
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:155
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/resources/allergy_intolerance/spec.py:111
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:133
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/allergy_intolerance.py:81
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:139
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:127
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:343
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:95
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:136
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:322
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:349
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:346
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:92
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/resources/allergy_intolerance/spec.py:83
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:80
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:77
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:74
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:211
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/allergy_intolerance.py:103
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:225
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/allergy_intolerance.py:112
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:332
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/allergy_intolerance.py:87
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:219
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/resources/allergy_intolerance/spec.py:59
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:215
- repositories/teleicu/mansoq-core-teleicu/mansoq/emr/api/viewsets/base.py:268