Stream: IG creation
Topic: Having a choice of profile in a Bundle entry slice
Jean Duteau (Aug 18 2020 at 04:54):
I have created a slice on Bundle.entry based on the profile url:
{
"id": "Bundle.entry",
"path": "Bundle.entry",
"slicing": {
"discriminator": [
{
"type": "type",
"path": "resource"
}
],
"rules": "open",
"description": "Slice different resources included in the bundle"
},
"min": 1,
"mustSupport": true
},
...
{
"id": "Bundle.entry:Claim",
"path": "Bundle.entry",
"sliceName": "Claim",
"min": 1,
"max": "1"
},
{
"id": "Bundle.entry:Claim.resource",
"path": "Bundle.entry.resource",
"type": [
{
"code": "Claim",
"profile": [
"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim",
"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim-update"
]
}
]
}
In my example, I have an instance of profile-claim:
"entry": [
{
"fullUrl": "http://example.org/fhir/Claim/ClaimSubmitExample",
"resource": {
"resourceType": "Claim",
"id": "ClaimSubmitExample",
"meta": {
"profile": [
"http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim"
]
},
But I'm getting this error in the qa report:
Unable to find matching profile among choices: ; [http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim, http://hl7.org/fhir/us/davinci-pas/StructureDefinition/profile-claim-update]
I might be doing this wrong, but I can't see why I'm getting the error.
Grahame Grieve (Aug 19 2020 at 03:48):
do you have a full profile + example? or an IG where I can reproduce this?
Last updated: Apr 12 2022 at 19:14 UTC