The openIMIS Policy is mapped to the FHIR R4 Contract resource.Mapping
FHIR R4 Resource - Contract
scope | Name | Type | Value / mapping |
---|---|---|---|
formal sector |
| type.coding.code “UUID“ Reference: Contract | UUID of contract |
informal sector |
| type.coding.code “UUID“ Reference: Contract | UUID of policy |
all |
| String | NEW = N => “Offered“, RENEWED = R => “Renewed“ |
formal sector (optional) |
| type.coding.code “UUID“ Reference: Person / Patient | user that approve |
formal sector (optional) |
| type.coding.code “UUID“ Reference: Person / Patient | PH user that submitted |
informal sector (mandatory) |
| type.coding.code “UUID“ Reference: Practitioner | value:EnrolmentOfficer UUID text (optional): EnrolmentOfficer |
informal sector (optional) |
| type.coding.code “UUID“ Reference: Patient | value:Head of Family UUID text (optional): HeadOfFamily |
all |
| String | STATUS_IDLE = 1 => “Offered“ STATUS_ACTIVE = 2 => “Executed“ STATUS_SUSPENDED = 4 => “Disputed“ STATUS_EXPIRED = 8 => “Terminated“ STATUS_READY = 16 => “Executable“ STATUS_CONTRACTED(Those are FS contract) |
1 |
| Array of:
Reference: Patient Reference.type.coding.code: “UUID“ | UUID of the Patient |
formal sector |
| identifier | Contract details UUID |
1 |
| Period | Policy Start / expiry |
1 |
| Period | Policy effective_start/ expiry |
Depreciated |
[OLD, should be replaced] | Array of: Type: InsuranceProduct Indentifiertype.coding.code: “UUID“ | UUID of the product |
1 |
| identifier.type.coding.code: “UUID“ type: “InsuranceProduct” | UUID of the product |
Formal sector |
| identifier | UUID of the contractcontributionplandetails |
future |
| Money | PolicyValue before discount |
future |
| decimal | discount if any |
all |
| Money | PolicyValue |
formal sector |
| string | Link to Coverage (policy) |
deprecated |
| Total of contract Policy value | |
http://localhost:8000/api_fhir_r4/Contract/
By default, returns the list of all available contract resources. To fetch information about a specific object, you should add the UUID (e.g.02EEC-436C-495F-862U2-6FF68644D751
) key to URL :
http://localhost:8000/api_fhir_r4/Contract/02EEC-436C-495F-862U2-6FF68644D751 |
Should be used the GET HTTP method.
PUT - the operation currently supported
Updates the value of the specific object. List of supported fields can be found in the mapping table. Should be used the PUT HTTP method and the body as JSON representation (example can be found below). The requested URL needs to point to a specific object to do that you should add the UUID (e.g. 02EEC-436C-495F-862U2-6FF68644D751
) key to URL for instance:
http://localhost:8000/api_fhir_r4/Contract/02EEC-436C-495F-862U2-6FF68644D751 |
DELETE - the operation currently not supported
The operation can be used to remove the specific object from the database. Should be used the DELETE HTTP method. The requested URL needs to point to a specific object to do that you should add the UUID (e.g. 02EEC-436C-495F-862U2-6FF68644D751
) key to URL for instance:
http://localhost:8000/api_fhir_r4/Contract/02EEC-436C-495F-862U2-6FF68644D751 |
The DELETE operation will permanently remove the row from the database. |
{ "resource": { "resourceType": "Contract", "identifier": [ { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "8E0EA470-F42F-4042-900D-BE4E558CF0CE" } ], "legalState": { "text": "Offered" }, "signer": [ { "party": { "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "9E476265-05E1-45FC-B4F3-B523ED35BBBF" }, "reference": "Practitioner/9E476265-05E1-45FC-B4F3-B523ED35BBBF", "type": "Practitioner" }, "type": { "text": "EnrolmentOfficer" } }, { "party": { "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "5EAAAF1E-1248-4BA4-933F-C87CE12D0130" }, "reference": "Patient/5EAAAF1E-1248-4BA4-933F-C87CE12D0130", "type": "Patient" }, "type": { "text": "HeadOfFamily" } } ], "status": "Terminated", "term": [ { "asset": [ { "context": [ { "code": [ { "text": "Dependant" } ], "reference": { "display": "DAC3397B-AAAA-4A7A-97D3-8C3FD070F048:V0519", "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "DAC3397B-AAAA-4A7A-97D3-8C3FD070F048" }, "reference": "Patient/DAC3397B-AAAA-4A7A-97D3-8C3FD070F048", "type": "Patient" } }, { "code": [ { "text": "Dependant" } ], "reference": { "display": "3206E82B-AAAA-4BB2-A08D-E204DDCB6C8C:V0519", "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "3206E82B-AAAA-4BB2-A08D-E204DDCB6C8C" }, "reference": "Patient/3206E82B-AAAA-4BB2-A08D-E204DDCB6C8C", "type": "Patient" } }, { "code": [ { "text": "Dependant" } ], "reference": { "display": "4B58ECEF-AAAA-402A-8E43-0159E541A292:V0519", "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "4B58ECEF-AAAA-402A-8E43-0159E541A292" }, "reference": "Patient/4B58ECEF-AAAA-402A-8E43-0159E541A292", "type": "Patient" } }, { "code": [ { "text": "Dependant" } ], "reference": { "display": "6BC83744-AAAA-4EED-9F70-5E26FE182D76:V0519", "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "6BC83744-AAAA-4FED-9F70-5E26FE182D76" }, "reference": "Patient/6BC83744-AAAA-4EED-9F70-5E26FE182D76", "type": "Patient" } }, { "code": [ { "text": "Dependant" } ], "reference": { "display": "20C471BE-AAAA-4A19-953F-60812D89B376:V0519", "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "20C471BE-AAAA-4A19-953F-60812D89B376" }, "reference": "Patient/20C471BE-AAAA-4A19-953F-60812D89B376", "type": "Patient" } }, { "code": [ { "text": "Insuree" } ], "reference": { "display": "5EAAAF1E-1248-4BA4-933F-C87CE12D0130:V0519", "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "5EAAAF1E-1248-4BA4-933F-C87CE12D0130" }, "reference": "Patient/5EAAAF1E-1248-4BA4-933F-C87CE12D0130", "type": "Patient" } } ], "period": [ { "end": "2013-10-17", "start": "2012-10-17" } ], "typeReference": [ { "display": "2003PS", "identifier": { "type": { "coding": [ { "code": "UUID" } ] }, "use": "usual", "value": "A62E6573-5E59-4FD2-ADDD-2B4C8A27C8A5" }, "reference": "InsurancePlan/A62E6573-5E59-4FD2-AF4D-2B4C8A27C8A5", "type": "InsurancePlan" } ], "usePeriod": [ { "end": "2013-10-17", "start": "2012-10-17" } ], "valuedItem": [ { "net": { "value": 10000.0 } } ] } ] } ] } }, |