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
Copy file name to clipboardExpand all lines: articles/healthcare-apis/azure-api-for-fhir/store-profiles-in-fhir.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,23 +66,27 @@ Profiles are also specified by various Implementation Guides (IGs). Some common
66
66
67
67
### Storing profiles
68
68
69
-
To store profiles in Azure API for FHIR, you can `POST` the `StructureDefinition` with the profile content in the body of the request.
69
+
To store profiles in Azure API for FHIR, you can `PUT` the `StructureDefinition` with the profile content in the body of the request. An update or a conditional update are both good methods to store profiles on the FHIR service. Use the conditional update if you are unsure which to use.
70
70
71
+
Standard `PUT`: `PUT http://<your Azure API for FHIR base URL>/StructureDefinition/profile-id`
71
72
72
-
`POST http://<your Azure API for FHIR base URL>/StructureDefinition`
73
+
**or**
74
+
75
+
Conditional update: `PUT http://<your Azure API for FHIR base URL>/StructureDefinition?url=http://sample-profile-url`
73
76
74
77
```
75
78
{
76
79
"resourceType" : "StructureDefinition",
77
80
"id" : "profile-id",
81
+
"url": "http://sample-profile-url"
78
82
…
79
83
}
80
84
```
81
85
82
86
For example, if you'd like to store the `us-core-allergyintolerance` profile, you'd use the following rest command with the US Core allergy intolerance profile in the body. We've included a snippet of this profile for the example.
83
87
84
88
```rest
85
-
POST https://myAzureAPIforFHIR.azurehealthcareapis.com/StructureDefinition?url=http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance
89
+
PUT https://myAzureAPIforFHIR.azurehealthcareapis.com/StructureDefinition?url=http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance
86
90
```
87
91
88
92
```json
@@ -167,7 +171,7 @@ The `Capability Statement` lists all possible behaviors of Azure API for FHIR. A
Copy file name to clipboardExpand all lines: articles/healthcare-apis/fhir/store-profiles-in-fhir.md
+7-3Lines changed: 7 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,23 +67,27 @@ Profiles are also specified by various Implementation Guides (IGs). Some common
67
67
68
68
### Storing profiles
69
69
70
-
To store profiles to the FHIR server, you can `POST` the `StructureDefinition` with the profile content in the body of the request.
70
+
To store profiles in Azure API for FHIR, you can `PUT` the `StructureDefinition` with the profile content in the body of the request. A standard `PUT` or a conditional update are both good methods to store profiles on the FHIR service. Use the conditional update if you are unsure which to use.
71
71
72
+
Standard `PUT`: `PUT http://<your Azure API for FHIR base URL>/StructureDefinition/profile-id`
72
73
73
-
`POST http://<your FHIR service base URL>/StructureDefinition`
74
+
**or**
75
+
76
+
Conditional update: `PUT http://<your Azure API for FHIR base URL>/StructureDefinition?url=http://sample-profile-url`
74
77
75
78
```
76
79
{
77
80
"resourceType" : "StructureDefinition",
78
81
"id" : "profile-id",
82
+
"url": "http://sample-profile-url"
79
83
…
80
84
}
81
85
```
82
86
83
87
For example, if you'd like to store the `us-core-allergyintolerance` profile, you'd use the following rest command with the US Core allergy intolerance profile in the body. We've included a snippet of this profile for the example.
84
88
85
89
```rest
86
-
POST https://myworkspace-myfhirserver.fhir.azurehealthcareapis.com/StructureDefinition?url=http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance
90
+
PUT https://myAzureAPIforFHIR.azurehealthcareapis.com/StructureDefinition?url=http://hl7.org/fhir/us/core/StructureDefinition/us-core-allergyintolerance
0 commit comments