From ea89f3af286140bf417824ceeaffa20ad9f3ef3d Mon Sep 17 00:00:00 2001 From: jamesagnew Date: Wed, 9 Dec 2015 07:07:05 -0500 Subject: [PATCH] Correctly return profile --- .../fhir/rest/server/provider/dstu21/ServerProfileProvider.java | 2 +- .../fhir/rest/server/provider/dstu2/ServerProfileProvider.java | 2 +- .../java/org/hl7/fhir/instance/conf/ServerProfileProvider.java | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/hapi-fhir-structures-dstu2.1/src/main/java/ca/uhn/fhir/rest/server/provider/dstu21/ServerProfileProvider.java b/hapi-fhir-structures-dstu2.1/src/main/java/ca/uhn/fhir/rest/server/provider/dstu21/ServerProfileProvider.java index 01b8162d0a4..594e4704c54 100644 --- a/hapi-fhir-structures-dstu2.1/src/main/java/ca/uhn/fhir/rest/server/provider/dstu21/ServerProfileProvider.java +++ b/hapi-fhir-structures-dstu2.1/src/main/java/ca/uhn/fhir/rest/server/provider/dstu21/ServerProfileProvider.java @@ -55,7 +55,7 @@ public class ServerProfileProvider implements IResourceProvider { @Read() public StructureDefinition getProfileById(HttpServletRequest theRequest, @IdParam IdDt theId) { - RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getValue()); + RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getIdPart()); if (retVal==null) { return null; } diff --git a/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2/ServerProfileProvider.java b/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2/ServerProfileProvider.java index 167e075ce4e..4dbce4e374c 100644 --- a/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2/ServerProfileProvider.java +++ b/hapi-fhir-structures-dstu2/src/main/java/ca/uhn/fhir/rest/server/provider/dstu2/ServerProfileProvider.java @@ -55,7 +55,7 @@ public class ServerProfileProvider implements IResourceProvider { @Read() public StructureDefinition getProfileById(HttpServletRequest theRequest, @IdParam IdDt theId) { - RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getValue()); + RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getIdPart()); if (retVal==null) { return null; } diff --git a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/conf/ServerProfileProvider.java b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/conf/ServerProfileProvider.java index 6f066254b34..21505046d7b 100644 --- a/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/conf/ServerProfileProvider.java +++ b/hapi-fhir-structures-hl7org-dstu2/src/main/java/org/hl7/fhir/instance/conf/ServerProfileProvider.java @@ -56,7 +56,7 @@ public class ServerProfileProvider implements IResourceProvider { @Read() public StructureDefinition getProfileById(HttpServletRequest theRequest, @IdParam IdDt theId) { - RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getValue()); + RuntimeResourceDefinition retVal = myContext.getResourceDefinitionById(theId.getIdPart()); if (retVal==null) { return null; }