Basic
Basic resource for non-FHIR data
In addition to its normal use the read and search functions for the Basic resource may be used to query for non-FHIR resources stored in MIDATA.
Depending on the access filter of the application any search request will not only search the available Basic resources but also any other record stored in MIDATA. If you want to work with Basic resources only it is important that you restrict access to fhir/Basic format in the access filter.
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 Basic by id.
Request:
[GET] /fhir/Basic/<id>
Read specific version
Read a specific version of a single Basic by id.
Request:
[GET] /fhir/Basic/<id>/_history/<version>
Retrieve history
Retrieve all versions of a single resource.
Request:
[GET] /fhir/Basic/<id>/_history
Search
Search for resources of type Basic
Request:
[GET] /fhir/Basic?searchParams
List of supported search parameters:
Supported query parameters:
Name | Type | Description |
---|---|---|
_id | string | The resource identity |
_lastUpdated | date | Only return resources which were last updated as specified by the given range |
_page | string | |
author | reference | Who created |
code | token | Kind of Resource |
created | date | When created |
identifier | token | Business identifier |
patient | reference | Identifies the focus of this resource |
subject | reference | Identifies the focus of this resource |
Create
Create a new resource of type Basic.
Request:
[POST] /fhir/Basic
Update
Updates a resource of type Basic.
Request:
[PUT] /fhir/Basic/<id>