TEST: OHIE-CR-02-FHIR
Patient Identity Feed - Resolve Identity Domains
Last updated
Was this helpful?
Was this helpful?
<dataset id="Test Domain" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://santedb.org/data">
<insert skipIfError="false" skipIfExists="true">
<SecurityApplication xmlns="http://santedb.org/model">
<id>F0FC4322-948D-4986-A06C-DA603A77EDDE</id>
<!-- Secret: TEST_HARNESS -->
<applicationSecret>b5547020757c0efa3f320fbd2a0c43d0628e19b8cd81652523b87d31fc54f5ec</applicationSecret>
<name>TEST_HARNESS</name>
</SecurityApplication>
</insert>
<!-- TEST -->
<insert skipIfError="false" skipIfExists="true">
<AssigningAuthority xmlns="http://santedb.org/model">
<name>OHIE TEST Domain</name>
<domainName>TEST_FHIR</domainName>
<oid>2.16.840.1.113883.3.72.5.9.1</oid>
<url>http://ohie.org/test/test</url>
<isUnique>true</isUnique>
<assigningApplication>F0FC4322-948D-4986-A06C-DA603A77EDDE</assigningApplication>
</AssigningAuthority>
</insert>POST http://localhost:8080/auth/oauth2_token HTTP/1.1
Accept-Encoding: gzip,deflate
Content-Type: application/x-www-form-urlencoded;charset=UTF-8
Content-Length: 87
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1)
grant_type=client_credentials&scope=*&client_secret=TEST_HARNESS&client_id=TEST_HARNESS{
"resourceType": "Patient",
"id": "ohie-cr-02-10-fhir",
"active": true,
"identifier": [
{
"system": "urn:oid:2.16.840.1.113883.3.72.5.9.1",
"value": "FHR-020"
}
],
"name": [
{
"use": "official",
"family": "OID",
"given": [
"OLLY"
]
}
],
"gender": "male",
"birthDate": "1983-02-05"
}GET http://localhost:8080/fhir/Patient?identifier=http%3A%2F%2Fohie.org%2Ftest%2Ftest%7CFHR-020&_format=application%2Ffhir%2Bjson HTTP/1.1
Accept-Encoding: gzip,deflate
Authorization: BEARER xxxxxxx
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1){
"resourceType": "Patient",
"id": "ohie-cr-02-30-fhir",
"active": true,
"identifier": [
{
"system": "http://ohie.org/test/test",
"value": "FHR-021"
}
],
"name": [
{
"use": "official",
"family": "URL",
"given": [
"UMA"
]
}
],
"gender": "female",
"birthDate": "1990-03-09"
}GET http://localhost:8080/fhir/Patient?identifier=urn%3Aoid%3A2.16.840.1.113883.3.72.5.9.1%7CFHR-021&_format=application%2Ffhir%2Bjson HTTP/1.1
Accept-Encoding: gzip,deflate
Authorization: BEARER xxxxxxx
Host: localhost:8080
Connection: Keep-Alive
User-Agent: Apache-HttpClient/4.5.5 (Java/12.0.1)