You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now that you're able to connect to your FHIR® server and POST data, you’re ready to write a web application that will read FHIR data. In this final step of the tutorial, we walk through writing and accessing the web application.
17
+
Once you're able to connect to your FHIR® server and POST data, you’re ready to write a web application that will read FHIR data. In this final step of the tutorial, we walk through writing and accessing the web application.
18
18
19
19
## Create web application
20
20
In Azure, select **Create a resource** and select **Web App**. Make sure to name your web application whatever you specified in the redirect URI for your client application, or go back and update the redirect URI with the new name.
@@ -23,7 +23,7 @@ In Azure, select **Create a resource** and select **Web App**. Make sure to name
23
23
24
24
Once the web application is available, select **Go to resource**. Select **App Service Editor (Preview)** under Development Tools on the right and then select **Go**. Selecting **Go** opens up the App Service Editor. Right select in the grey space under *Explore* and create a new file called **index.html**.
25
25
26
-
The following is the code that you can input into **index.html**. You’ll need to update the following items.
26
+
The following is code you can input into **index.html**. You’ll need to update the following items.
27
27
***clientId** - Update with your client application ID. This ID is the same ID you pulled when retrieving your token
28
28
***authority** - Update with your Microsoft Entra tenant ID
29
29
***FHIRendpoint** - Update the FHIRendpoint to have your FHIR service name
Copy file name to clipboardExpand all lines: articles/healthcare-apis/azure-api-for-fhir/validation-against-profiles.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ ms.author: kesheth
15
15
16
16
In the [store profiles in Azure API for FHIR](store-profiles-in-fhir.md) article, you walked through the basics of FHIR profiles and storing them. This article guides you through how to use `$validate` for validating resources against profiles. Validating a resource against a profile means checking if the resource conforms to the profile, including the specifications listed in `Resource.meta.profile` or in an Implementation Guide (IG).
17
17
18
-
`$validate` is an operation in Fast Healthcare Interoperability Resources (FHIR®) that allows you to ensure that a FHIR resource conforms to the base resource requirements or a specified profile. This operation ensures that the data in Azure API for FHIR has the expected attributes and values. For information on validate operation, visit [HL7 FHIR Specification](https://www.hl7.org/fhir/resource-operation-validate.html). Per the specification, Modecan be specified with `$validate`, such as create and update.
18
+
`$validate` is an operation in Fast Healthcare Interoperability Resources (FHIR®) that allows you to ensure that a FHIR resource conforms to the base resource requirements or a specified profile. This operation ensures that the data in Azure API for FHIR has the expected attributes and values. For information on validate operation, visit the [HL7 FHIR Specification](https://www.hl7.org/fhir/resource-operation-validate.html). Per the specification, `Mode` (such as `create` and `update`) can be specified with `$validate`.
19
19
20
20
-`create`: Azure API for FHIR checks that the profile content is unique from the existing resources and that it's acceptable to be created as a new resource.
21
21
-`update`: Checks that the profile is an update against the nominated existing resource (that is no changes are made to the immutable fields).
@@ -26,10 +26,10 @@ There are different ways provided for you to validate resource.
26
26
- Validate a new resource with validate operation.
27
27
- Validate on resource CREATE/UPDATE using a header.
28
28
29
-
Azure API for FHIR always returns an `OperationOutcome` as the validation results for `$validate` operation. Azure API for FHIR service does two step validation once a resource is passed into `$validate` endpoint. The first step is a basic validation to ensure resource can be parsed. During resource parsing, individual errors need to be fixed before proceeding to next step. Once a resource is successfully parsed, full validation is conducted as the second step.
29
+
Azure API for FHIR always returns an `OperationOutcome` as the validation results for a `$validate` operation. Azure API for FHIR service does two step validation once a resource is passed into a `$validate` endpoint. The first step is a basic validation to ensure the resource can be parsed. During resource parsing, individual errors need to be fixed before proceeding to next step. Once a resource is successfully parsed, full validation is conducted as the second step.
30
30
31
31
> [!NOTE]
32
-
> Any `Valuesets` that are to be used for validation must be uploaded to the FHIR server. This includes any `Valuesets` which are part of the FHIR specification, as well as any `ValueSets` defined in Implementation Guides. Only fully expanded `Valuesets`, which contain a full list of all codes are supported. Any `ValueSet` definitions which reference external sources are not supported.
32
+
> Any `Valuesets` that are to be used for validation must be uploaded to the FHIR server. This includes any `Valuesets` which are part of the FHIR specification, as well as any `ValueSets` defined in Implementation Guides. Only fully expanded `Valuesets` which contain a full list of all codes are supported. Any `ValueSet` definitions which reference external sources are not supported.
33
33
34
34
## Validating an existing resource
35
35
@@ -55,7 +55,7 @@ In this example, you're validating the existing Patient resource `a6e11662-def8-
55
55
]
56
56
}
57
57
```
58
-
If the resource isn't valid, you get an error code and an error message with details on why the resource is invalid. An example `OperationOutcome` gets returned with error messages and could look like the following code example.
58
+
If the resource isn't valid, you get an error code and an error message with details on why the resource is invalid. An `OperationOutcome` gets returned with error messages, and could look like the following code example.
59
59
60
60
```json
61
61
{
@@ -116,7 +116,7 @@ For example,
116
116
117
117
This request validates the resource. Resources aren't created in FHIR service on validation. You need to send a POST request without `$validate` to create a resource.
118
118
119
-
## Validate on resource CREATE/UPDATE using header.
119
+
## Validate on a resource CREATE/UPDATE using a header
120
120
121
121
By default, Azure API for FHIR is configured to opt out of validation on resource `Create/Update`. This capability allows validation on `Create/Update`, using the `x-ms-profile-validation` header. Set `x-ms-profile-validation` to true for validation.
0 commit comments