Flag
Semantical type
The “code” field of the resource is used to determine the semantical type of the resource. If the field is not present the resource type will be used. Look at the List of registered codes for a complete list of codes registered in MIDATA. Include the required codes into your applications access filter if you need to use this resource.
Resource owner
If the resource contains a subject which is a Patient or Practitioner that user is the owner of the resource. Otherwise the creator of the resource is the owner.
Default value for “subject”
If a resource with no subject field is send to MIDATA, the backend will set the subject to the current user.
Read
Read a single Flag by id.
Request:
[GET] /fhir/Flag/<id>
Read specific version
Read a specific version of a single Flag by id.
Request:
[GET] /fhir/Flag/<id>/_history/<version>
Retrieve history
Retrieve all versions of a single resource.
Request:
[GET] /fhir/Flag/<id>/_history
Search
Search for resources of type Flag
Request:
[GET] /fhir/Flag?searchParams
List of supported search parameters:
Supported query parameters:
Name | Type | Description |
---|---|---|
_id | token | The ID of the resource |
_lastUpdated | date | Only return resources which were last updated as specified by the given range |
_page | string | |
author | reference | Flag creator |
date | date | Time period when flag is active |
encounter | reference | Alert relevant during encounter |
identifier | token | Business identifier |
patient | reference | The identity of a subject to list flags for |
subject | reference | The identity of a subject to list flags for |
Create
Create a new resource of type Flag.
Request:
[POST] /fhir/Flag
Update
Updates a resource of type Flag.
Request:
[PUT] /fhir/Flag/<id>