February 10, 2022

Kodjin MPI REST API

$Link specification

Inputs:

OpenAPI Specification

Swagger OpenAPI 3.0

MPI $patient match example

E-Health Apiary (GET/POST method)

Confluence example for Patient Merge and Link

I have completed the following:

  • Terminal (local frameworks)
    • node js
    • express js
  • Codecademy course – @Swagger
  • Yaml, Markdown, JSON
  • OpenAPI 3.0 guide

Right now, I am in the middle of the REST API spec for $Link MPI Kodjin

Here is a link — Swagger Editor

There are a few questions to talk about:

  1. Let's begin with Critical thinking
  2. Planning and designing the API $Link

{
	"Patient": {
		"id": {
			"_value": "01"
		},
		"identifier": {
			"use": {
				"_value": "official"
			},
			"type": {
				"coding": {
					"system": {
						"_value": "http://www.hospital-a/localid"
					},
					"code": {
						"_value": "HospitalA"
					},
					"display": {
						"_value": "Hospital A"
					}
				},
				"text": {
					"_value": "Hospital A"
				}
			},
			"system": {
				"_value": "urn:oid:2.16.840.1.113883.3.72.5.9.1"
			},
			"value": {
				"_value": "1000000001"
			},
			"assigner": {
				"display": {
					"_value": "Hospital A"
				}
			}
		},
		"name": {
			"family": {
				"_value": "WASHINGTON"
			},
			"given": {
				"_value": "MARY"
			}
		},
		"gender": {
			"_value": "female"
		},
		"birthDate": {
			"_value": "1954-07-04"
		},
		"_xmlns": "http://hl7.org/fhir"
	}
}

https://jsonformatter.org/xml-to-json

How to add components?

How to apply:

http://hl7.org/fhir/valueset-issue-type.html

https://www.hl7.org/fhir/valueset-link-type.html