## SMIS Patient ### Profile See {{pagelink:SMIS/SMISPatientprofile}} {{tree:SMIS/Patient}} ### Interactions * read * update * create * search all * search by identifier * Search parameters: * identifier (required) * $last-update * $last-update by identifier ### Patient Identifiers | Name | System | Sample Value | |-------------------------|-----------------------------------------|------------------| | Internal Patient Id | http://smis.ch/fhir/patient/internal_id | 1297774007642120 | | External Patient Id | http://smis.ch/fhir/patient/external_id | A777 | | Social insurance number | urn:oid:2.51.1.3 | 756.1234.5678.97 | ### Fields The patient profile is open. Therefore, all attributes of the base patient are allowed. SMIS only needs the following attributes, all others are ignored. | Path | Comment | |------------------------------------------------------------|-------------------------| | id | Numeric SMIS ID | | managingOrganization.reference | Numeric SMIS ID | | identifier[system=http://smis.ch/fhir/patient/external_id] | External ID, required | | identifier[system=urn:oid:2.51.1.3] | Social insurance number | | name[1].family | Required | | name[1].given | Required | | name[1].title | | | telecom | | | gender | Required | | birthDate | Required | | address[1].city | Required | | address[1].postalCode | Required | | address[1].state | | | address[1].country | | | address[1].line | | | contact[relationship.coding=N].name.text | | | contact[relationship.coding=N].telecom[1].value | | | contact[relationship.coding=N].address.city | | | contact[relationship.coding=N].address.postalCode | | | contact[relationship.coding=N].address.address.line | | | contact[relationship.coding=E].name.text | | | contact[relationship.coding=E].address.city | | | contact[relationship.coding=E].address.postalCode | | | contact[relationship.coding=E].address.address.line | | ### Operations #### $last-update Gets the last update date of a patient health record. This operation is required data synchonizing. Its possible to get the last update date by internal or external id. Samples: ``` GET https://BASE_URL/fhir/Patient/1489161154728048/$last-update GET https://BASE_URL/fhir/Patient/$last-update?identifier=FDDEC0EA-A0FA-448C-916E-51C777AD97E8' ``` The result will be a date time parameter: ```json { "resourceType": "Parameters", "parameter": [ { "name": "lastPatientUpdate", "valueDateTime": "2018-09-06T13:53:19+02:00" } ] } ```