Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

curl -X POST --header "Accept: application/fhir+json" --header "Content-Type: application/fhir+json" --header "Authorization: Bearer eyJhbGxxxx" --header "X-Org-Public-Id: 235a397b-1ae8-4755-9c77-1a0e2fbc5314" "https://sandbox.patientsknowbest.com/phr-fhir/Patient/$process-message" --data "{ \"resourceType\": \"Patient\", \"identifier\": [{ \"extension\": [{ \"url\": \"https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1\", \"valueCodeableConcept\": { \"coding\": [{ \"system\": \"https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1\", \"code\": \"01\" }] } }], \"system\": \"https://fhir.nhs.uk/Id/nhs-number\\", \"value\": \"9999999999\" }], \"name\": [{ \"family\": \"Doe\", \"given\": [\"John\"], \"prefix\": [\"Mr\"] }], \"telecom\": [ { \"system\": \"phone\", \"value\": \"07123456789\" }, { \"system\": \"email\", \"value\": \"john.smith@example.com\" } ], \"gender\": \"male\", \"birthDate\": \"1990-01-02\", \"address\": [{ \"line\": [\"1 Main Street\", \"The Place\"], \"city\": \"London\", \"postalCode\": \"CB11BC\" }], \"extension\": [{\"url\": \"http://fhir.patientsknowbest.com/structuredefinition/team-alias\\", \"valueString\": \"team_alias_a\"}, {\"url\": \"http://fhir.patientsknowbest.com/structuredefinition/team-alias\\", \"valueString\": \"team_alias_b\"}] }"

...

Code Block
{
  "resourceType": "Patient",
  "identifier": [{
    "extension": [{
      "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1",
      "valueCodeableConcept": {
      "coding": [{
   
    "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
        "code": "01"
      }]
    }
    }],
    "system": "https://fhir.nhs.uk/Id/nhs-number",
    "value": "9999999999"
  }],
  "name": [{
    "family": "Doe",
    "given": ["John"],
    "prefix": ["Mr"]
  }],
  "telecom": [
    {
      "system": "phone",
      "value": "07123456789"
    },
    {
      "system": "email",
      "value": "john.smith@example.com"
    }
  ],
  "gender": "male",
  "birthDate": "1990-01-02",
  "address": [{
    "line": ["1 Main Street", "The Place"],
    "city": "London",
    "postalCode": "CB11BC"
  }],
  "extension": [
    {
      "url": "http://fhir.patientsknowbest.com/structuredefinition/team-alias",
      "valueString": "team_alias_a"
    },
    {
      "url": "http://fhir.patientsknowbest.com/structuredefinition/team-alias",
      "valueString": "team_alias_b"
    }
  ]
}

...

Code Block
{
  "resourceType": "Patient",
  "identifier": [{
    "extension": [{
      "url": "https://fhir.hl7.org.uk/STU3/StructureDefinition/Extension-CareConnect-NHSNumberVerificationStatus-1",
      "valueCodeableConcept": {
      "coding": [{

       "system": "https://fhir.hl7.org.uk/STU3/CodeSystem/CareConnect-NHSNumberVerificationStatus-1",
        "code": "02"
      }]
    }
    }],
    "system": "https://fhir.nhs.uk/Id/nhs-number",
    "value": "9999999999"
  }],
  "name": [{
    "family": "Doe",
    "given": ["John"],
    "prefix": ["Mr"]
  }],
  "telecom": [
    {
      "system": "phone",
      "value": "07123456789"
    },
    {
      "system": "email",
      "value": "john.smith@example.com"
    }
  ],
  "gender": "male",
  "birthDate": "1990-01-02",
  "address": [{
    "line": ["1 Main Street", "The Place"],
    "city": "London",
    "postalCode": "CB11BC"
  }]
}

Example response

Code Block
{
 
  "resourceType": "OperationOutcome",
    "id": "5b392b1ea7b93683-350bc9fd-4793467a-88b69d4f-53b3d4df5cab4cdb9534eef7",
    "issue": [
        {
  
         "severity": "error",
       
    "code": "invalid",
 
          "diagnostics": "NHS number identifier ismust notbe verifiedvalid"
  
     }
    ]
}