ĀP darbavietu datu izgūšana

NVD FHIR API nodrošina VVIS klasifikatoru reģistrā uzturamā klasifikatora 1.3.6.1.4.1.38760.2.37 realizāciju PractitionerRole resursa veidā. Atgriezto datu struktūra atbilst ĀP darbavietas profilam MedicalPersonRole:

idΣ0..1id
metaΣ0..1Meta
implicitRulesΣ ?!0..1uri
language0..1codeBinding
text0..1Narrative
containedI0..*Resource
contractNHSExistsI1..1Extension(boolean)
GeneralPractitionerPracticeI1..1Extension(boolean)
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)
activeΣ1..1boolean
id0..1id
extensionI0..*Extension
startΣ I1..1dateTime
endΣ I0..0dateTime
id0..1id
extensionI0..*Extension
referenceΣ I0..0string
typeΣ0..0uriBinding
id0..1id
extensionI0..*Extension
useΣ ?!0..0codeBinding
systemΣ1..1uriFixed Value
valueΣ1..1string
assignerΣ I0..0Reference(Organization)
displayΣ1..1string
id0..1id
medicalInstitutionBranchI0..1Extension(Coding)
referenceΣ I0..0string
typeΣ0..0uriBinding
id0..1id
extensionI0..*Extension
useΣ ?!0..0codeBinding
typeΣ0..0CodeableConceptBinding
systemΣ1..1uriFixed Value
valueΣ1..1string
periodΣ I0..0Period
assignerΣ I0..0Reference(Organization)
displayΣ1..1string
id0..1id
extensionI0..*Extension
id0..1id
extensionI0..*Extension
systemΣ1..1uriFixed Value
versionΣ1..1string
codeΣ1..1code
displayΣ1..1string
userSelectedΣ0..0boolean
textΣ0..0string
id0..1id
extensionI0..*Extension
id0..1id
extensionI0..*Extension
systemΣ1..1uriFixed Value
versionΣ1..1string
codeΣ1..1code
displayΣ1..1string
userSelectedΣ0..0boolean
textΣ0..0string
locationΣ I0..0Reference(Location)
healthcareServiceI0..0Reference(HealthcareService)
id0..1id
extensionI0..*Extension
systemΣ I1..1codeBindingFixed Value
valueΣ1..1string
useΣ ?!0..0codeBinding
rankΣ0..0positiveInt
periodΣ I0..0Period
id0..1id
extensionI0..*Extension
systemΣ I1..1codeBindingFixed Value
valueΣ1..1string
useΣ ?!0..0codeBinding
rankΣ0..0positiveInt
periodΣ I0..0Period
availabilityExceptions0..0string
endpointI0..0Reference(Endpoint)

Resursa tipam pieejamās operācijas

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

Resursā pieejamās ĀP darbavietu sistēmas

Izsaukuma lauks Vērtība Apraksts
system 1.3.6.1.4.1.38760.2.37 ārstniecības personas darbavietas identifikācijas 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.

Profilā izmantojamie resursi

Klasifikatora Nr Klasifikatora nosaukums
1.3.6.1.4.1.38760.2.1 Ārstniecības personu un ārstniecības atbalsta personu reģistrs
1.3.6.1.4.1.38760.2.23 Ārstniecības iestāžu klasifikators
1.3.6.1.4.1.38760.2.28 Ārstniecības iestāžu filiāļu klasifikators
1.3.6.1.4.1.38760.2.37 Ārstniecības personu un ārstniecības atbalsta personu darbavietu veidi
1.3.6.1.4.1.38760.2.38 Ārstniecības personu un ārstniecības atbalsta personu specialitāšu veidi
1.3.6.1.4.1.38760.2.39 Ārstniecības personu un ārstniecības atbalsta personu amatu veidi

Izsaukuma piemēri

POST izsaukumu struktūra

Resursa izsaukuma lauki

Izsaukuma lauks Apraksts Obligātums
resourceType Norāda resursa tipu izsaukumam Obligāts
system Ārstniecības personas identifikatora tipu Obligāts
value Personas identifikācijas numurs Obligāts

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

Metode: POST

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

Pieprasījuma body:

{
  "resourceType": "PractitionerRole",
  "system": "1.3.6.1.4.1.38760.2.37",
  "value": "00000000000"
}

Pieprasījuma atbildes struktūra:

{
    "resourceType": "Bundle",
    "entry": [
        {
            "resource": {
                "resourceType": "PractitionerRole",
                "id": "01H0N06WA9BNMQH6RCCT0KPF53",
                "meta": {
                    "versionId": "2",
                    "lastUpdated": "2016-11-11T12:06:57.78+02:00",
                    "source": "1.3.6.1.4.1.38760.2.37|185",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/MedicalPersonRole"
                    ]
                },
                "extension": [
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/ContractNHSExists",
                        "valueBoolean": true
                    },
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractittionerRole/GeneralPractitionerPractice",
                        "valueBoolean": false
                    }
                ],
                "identifier": [
                    {
                        "use": "official",
                        "system": "1.3.6.1.4.1.38760.2.37",
                        "value": "15084811806"
                    }
                ],
                "active": false,
                "period": {
                    "start": "2014-01-01"
                },
                "practitioner": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.1",
                        "value": "15084811806"
                    },
                    "display": "Valentīna Ziedone"
                },
                "organization": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.23",
                        "value": "701800002"
                    },
                    "display": "Varakļānu veselības aprūpes centrs, SIA"
                },
                "code": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.39",
                                "version": "4",
                                "code": "2212101",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ],
                "specialty": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.38",
                                "version": "4",
                                "code": "P13",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

GET izsaukumu struktūra

Operators "_history"

Galapunkts: "HOST"/fhir/api/PractitionerRole/"PractitionerRole_SystemId"/_history/"Version"

-'PractitionerRole_SystemId" - Ārstniecības personas darbavietas identifikators

-"Version"' - Meklē ārstniecības personas darbavietas 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/PractitionerRole/01H02R21R2DRTXJ0XW4ZGV6FNK/_history

Pieprasījuma atbildes struktūra:

{
    "resourceType": "Bundle",
    "entry": [
        {
            "resource": {
                "resourceType": "PractitionerRole",
                "id": "01H0N06WA9BNMQH6RCCT0KPF53",
                "meta": {
                    "versionId": "2",
                    "lastUpdated": "2016-11-11T12:06:57.78+02:00",
                    "source": "1.3.6.1.4.1.38760.2.37|185",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/MedicalPersonRole"
                    ]
                },
                "extension": [
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/ContractNHSExists",
                        "valueBoolean": true
                    },
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractittionerRole/GeneralPractitionerPractice",
                        "valueBoolean": false
                    }
                ],
                "identifier": [
                    {
                        "use": "official",
                        "system": "1.3.6.1.4.1.38760.2.37",
                        "value": "15084811806"
                    }
                ],
                "active": false,
                "period": {
                    "start": "2014-01-01"
                },
                "practitioner": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.1",
                        "value": "15084811806"
                    },
                    "display": "Valentīna Ziedone"
                },
                "organization": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.23",
                        "value": "701800002"
                    },
                    "display": "Varakļānu veselības aprūpes centrs, SIA"
                },
                "code": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.39",
                                "version": "4",
                                "code": "2212101",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ],
                "specialty": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.38",
                                "version": "4",
                                "code": "P13",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ]
            }
        },
        {
            "resource": {
                "resourceType": "PractitionerRole",
                "id": "01H0N06WA9BNMQH6RCCT0KPF53",
                "meta": {
                    "versionId": "1",
                    "lastUpdated": "2014-01-28T10:53:24.083+02:00",
                    "source": "1.3.6.1.4.1.38760.2.37|7",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/MedicalPersonRole"
                    ]
                },
                "extension": [
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/ContractNHSExists",
                        "valueBoolean": true
                    },
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractittionerRole/GeneralPractitionerPractice",
                        "valueBoolean": false
                    }
                ],
                "identifier": [
                    {
                        "use": "official",
                        "system": "1.3.6.1.4.1.38760.2.37",
                        "value": "15084811806"
                    }
                ],
                "active": true,
                "period": {
                    "start": "2014-01-01"
                },
                "practitioner": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.1",
                        "value": "15084811806"
                    },
                    "display": "Valentīna Ziedone"
                },
                "organization": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.23",
                        "value": "701800002"
                    },
                    "display": "Varakļānu veselības aprūpes centrs, SIA"
                },
                "code": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.39",
                                "version": "4",
                                "code": "2212101",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ],
                "specialty": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.38",
                                "version": "4",
                                "code": "P13",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}

Operators "_search"

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

Metode: GET

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

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

Pieprasījuma atbildes struktūra:

{
    "resourceType": "Bundle",
    "type": "searchset",
    "entry": [
        {
            "resource": {
                "resourceType": "PractitionerRole",
                "id": "01H0N06WA9BNMQH6RCCT0KPF53",
                "meta": {
                    "versionId": "2",
                    "lastUpdated": "2016-11-11T12:06:57.78+02:00",
                    "source": "1.3.6.1.4.1.38760.2.37|185",
                    "profile": [
                        "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/MedicalPersonRole"
                    ]
                },
                "extension": [
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractitionerRole/ContractNHSExists",
                        "valueBoolean": true
                    },
                    {
                        "url": "https://vvis.gov.lv/fhir/StructureDefinition/PractittionerRole/GeneralPractitionerPractice",
                        "valueBoolean": false
                    }
                ],
                "identifier": [
                    {
                        "use": "official",
                        "system": "1.3.6.1.4.1.38760.2.37",
                        "value": "15084811806"
                    }
                ],
                "active": false,
                "period": {
                    "start": "2014-01-01"
                },
                "practitioner": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.1",
                        "value": "15084811806"
                    },
                    "display": "Valentīna Ziedone"
                },
                "organization": {
                    "identifier": {
                        "system": "1.3.6.1.4.1.38760.2.23",
                        "value": "701800002"
                    },
                    "display": "Varakļānu veselības aprūpes centrs, SIA"
                },
                "code": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.39",
                                "version": "4",
                                "code": "2212101",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ],
                "specialty": [
                    {
                        "coding": [
                            {
                                "system": "https://vvis.gov.lv/fhir/ValueSet/1.3.6.1.4.1.38760.2.38",
                                "version": "4",
                                "code": "P13",
                                "display": "traumatologs, ortopēds"
                            }
                        ]
                    }
                ]
            }
        }
    ]
}