ĀP datu izgūšana

NVD FHIR API nodrošina VVIS klasifikatora 1.3.6.1.4.1.38760.2.1 vērtību atspoguļošanu Practitioner resursa veidā. Atgriezto datu struktūra atbilst ĀP profilam MedicalPerson:

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
containedI0..*Resource
extensionI0..*Extension
modifierExtension?! I0..*Extension
id0..1id
extensionI0..*Extension
useΣ ?!1..1codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ1..1string
periodΣ I0..0Period
assignerΣ I0..0Reference(Organization)
id0..1id
extensionI0..*Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ1..1string
periodΣ I0..0Period
assignerΣ I0..0Reference(Organization)
activeΣ1..1boolean
id0..1id
extensionI0..*Extension
useΣ ?!0..0codeBinding
textΣ1..1string
familyΣ1..1string
givenΣ1..*string
prefixΣ0..0string
suffixΣ0..0string
periodΣ I0..0Period
telecomΣ I0..0ContactPoint
addressΣ0..0Address
genderΣ0..0codeBinding
birthDateΣ0..0date
photoI0..0Attachment
id0..1id
extensionI0..*Extension
modifierExtensionΣ ?! I0..*Extension
identifier0..0Identifier
id0..1id
extensionI0..*Extension
id0..1id
extensionI0..*Extension
systemΣ1..1uriFixed Value
versionΣ1..1string
codeΣ1..1codeBinding
displayΣ1..1string
userSelectedΣ0..0boolean
textΣ0..0string
periodI0..0Period
communication0..0CodeableConceptBinding

Resursa tipam pieejamās operācijas

Izsaukuma metode Resursa tips Operācija
POST Practitioner by-identity
GET Practitioner _search
GET Practitioner _history

Resursā pieejamās pacientu sistēmas

Izsaukuma lauks Vērtība Apraksts
system 1.3.6.1.4.1.38760.3.1.1 Latvijas personas identifikācijas izsaukums
system 1.3.6.1.4.1.38760.3.1.4 Ārstniecības personas koda izsaukums

Izsaukuma veikšana

Resursu izsaukumus vienmēr ir jāveic ar JWT tokena autorizāciju. Informāciju par autorizāciju sk. nodaļā Autorizācija.

Izsaukuma piemēri

POST izsaukumu struktūra

Resursa izsaukuma lauki

Izsaukuma lauks Apraksts Obligātums
resourceType Resursa tips izsaukumam Obligāts
system Ārstniecības personas identifikatora tips Obligāts
value Personas identifikācijas numurs Obligāts

Galapunkts: "HOST"/fhir/api/search/Practitioner/by-identity

Metode: POST

Autorizācijas talons: NVD STS izsaukumā iegūtais JWT talons

Pieprasījuma body:

{
  "resourceType": "Practitioner",
  "system": "1.3.6.1.4.1.38760.3.1.1",
  "value": "00000000000"
}

Pieprasījuma atbildes struktūra:

{
    "entry": [
        {
            "resource": {
                "active": false,
                "id": "01H02R21R2DRTXJ0XW4ZGV6FNK",
                "identifier": [
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.1",
                        "use": "official",
                        "value": "05094417002"
                    },
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.4",
                        "value": "05094417002"
                    }
                ],
                "meta": {
                    "lastUpdated": "2019-07-18T16:18:29.957+03:00",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/Practitioner/MedicalPerson"
                    ],
                    "source": "1.3.6.1.4.1.38760.2.1|199",
                    "versionId": "2"
                },
                "name": [
                    {
                        "family": "Abiņa",
                        "given": [
                            "Līga"
                        ],
                        "text": "Līga Abiņa"
                    }
                ],
                "qualification": [
                    {
                        "code": {
                            "coding": [
                                {
                                    "code": "1",
                                    "display": "Ārsts",
                                    "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.34",
                                    "version": "7"
                                }
                            ]
                        }
                    }
                ],
                "resourceType": "Practitioner"
            }
        },
        {
            "resource": {
                "active": true,
                "id": "01H02SZK6CK0EH0P71KGFVYEJT",
                "identifier": [
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.1",
                        "use": "official",
                        "value": "05094417002"
                    },
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.4",
                        "value": "05094417002"
                    }
                ],
                "meta": {
                    "lastUpdated": "2019-07-18T16:51:55.277+03:00",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/Practitioner/MedicalPerson"
                    ],
                    "source": "1.3.6.1.4.1.38760.2.1|200",
                    "versionId": "1"
                },
                "name": [
                    {
                        "family": "Abiņa",
                        "given": [
                            "Līga"
                        ],
                        "text": "Līga Abiņa"
                    }
                ],
                "qualification": [
                    {
                        "code": {
                            "coding": [
                                {
                                    "code": "1",
                                    "display": "Ārsts",
                                    "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.34",
                                    "version": "7"
                                }
                            ]
                        }
                    }
                ],
                "resourceType": "Practitioner"
            }
        }
    ],
    "resourceType": "Bundle"
}

GET izsaukumu struktūra

Operators "_history"

Galapunkts: "HOST"/fhir/api/Practitioner/"Practitioner_SystemId"/_history/"Version"

-'Practitioner_SystemId" - Ārstniecības personas identifikators

-"Version"' - Meklē ārstniecības personas datus konkrētā ieraksta versijā (neobligāts izsaukuma parametrs)

Metode: GET

Autorizācijas talons: NVD STS izsaukumā iegūtais JWT talons

Pieprasījuma galvene: /fhir/api/Practitioner/01H02R21R2DRTXJ0XW4ZGV6FNK/_history

Pieprasījuma atbildes struktūra:

{
    "entry": [
        {
            "resource": {
                "active": false,
                "id": "01H02R21R2DRTXJ0XW4ZGV6FNK",
                "identifier": [
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.1",
                        "use": "official",
                        "value": "05094417002"
                    },
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.4",
                        "value": "05094417002"
                    }
                ],
                "meta": {
                    "lastUpdated": "2019-07-18T16:18:29.957+03:00",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/Practitioner/MedicalPerson"
                    ],
                    "source": "1.3.6.1.4.1.38760.2.1|199",
                    "versionId": "2"
                },
                "name": [
                    {
                        "family": "Abiņa",
                        "given": [
                            "Līga"
                        ],
                        "text": "Līga Abiņa"
                    }
                ],
                "qualification": [
                    {
                        "code": {
                            "coding": [
                                {
                                    "code": "1",
                                    "display": "Ārsts",
                                    "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.34",
                                    "version": "7"
                                }
                            ]
                        }
                    }
                ],
                "resourceType": "Practitioner"
            }
        },
        {
            "resource": {
                "active": true,
                "id": "01H02R21R2DRTXJ0XW4ZGV6FNK",
                "identifier": [
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.1",
                        "use": "official",
                        "value": "05094417002"
                    },
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.4",
                        "value": "05094417002"
                    }
                ],
                "meta": {
                    "lastUpdated": "2013-05-17T10:49:47.46+03:00",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/Practitioner/MedicalPerson"
                    ],
                    "source": "1.3.6.1.4.1.38760.2.1|1",
                    "versionId": "1"
                },
                "name": [
                    {
                        "family": "Abiņa",
                        "given": [
                            "Līga"
                        ],
                        "text": "Līga Abiņa"
                    }
                ],
                "qualification": [
                    {
                        "code": {
                            "coding": [
                                {
                                    "code": "1",
                                    "display": "Ārsts",
                                    "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.34",
                                    "version": "1"
                                }
                            ]
                        }
                    }
                ],
                "resourceType": "Practitioner"
            }
        }
    ],
    "resourceType": "Bundle"
}

Operators "_search"

Galapunkts: "HOST"/fhir/api/Practitioner/_search

Metode: GET

Autorizācijas talons: NVD STS izsaukumā iegūtais JWT talons

Pieprasījuma parametri: "HOST"/fhir/api/Practitioner/_search?active=true

Pieprasījuma atbildes struktūra:

{
   {
    "resourceType": "Bundle",
    "type": "searchset",
    "entry": [
        {
            "resource": {
                "resourceType": "Practitioner",
                "id": "01H02SZK6CDRF0YCNPP5BSJRHY",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2019-07-18T16:51:55.277+03:00",
                    "source": "1.3.6.1.4.1.38760.2.1|200",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/Practitioner/MedicalPerson"
                    ]
                },
                "identifier": [
                    {
                        "use": "official",
                        "system": "1.3.6.1.4.1.38760.3.1.1",
                        "value": "19065913055"
                    },
                    {
                        "system": "1.3.6.1.4.1.38760.3.1.4",
                        "value": "94790004723"
                    }
                ],
                "active": true,
                "name": [
                    {
                        "text": "Lāsma Volksone",
                        "family": "Volksone",
                        "given": [
                            "Lāsma"
                        ]
                    }
                ],
                "qualification": [
                    {
                        "code": {
                            "coding": [
                                {
                                    "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.34",
                                    "version": "7",
                                    "code": "1",
                                    "display": "Ārsts"
                                }
                            ]
                        }
                    }
                ]
            }
        },...]
    }
}