Package ca.uhn.fhir.jpa.ips.api
Class IpsContext
java.lang.Object
ca.uhn.fhir.jpa.ips.api.IpsContext
- Direct Known Subclasses:
IpsSectionContext
-
Constructor Summary
ConstructorDescriptionIpsContext
(org.hl7.fhir.instance.model.api.IBaseResource theSubject, org.hl7.fhir.instance.model.api.IIdType theSubjectId) Constructor -
Method Summary
Modifier and TypeMethodDescriptionorg.hl7.fhir.instance.model.api.IBaseResource
Returns the subject Patient resource for the IPS being generated.org.hl7.fhir.instance.model.api.IIdType
Returns the ID of the subject for the given IPS.<T extends org.hl7.fhir.instance.model.api.IBaseResource>
IpsSectionContext<T> newSectionContext
(Section theSection, Class<T> theResourceType)
-
Constructor Details
-
IpsContext
public IpsContext(org.hl7.fhir.instance.model.api.IBaseResource theSubject, org.hl7.fhir.instance.model.api.IIdType theSubjectId) Constructor- Parameters:
theSubject
- The subject Patient resource for the IPS being generatedtheSubjectId
- The original ID for theSubject, which may not match the current ID ifIIpsGenerationStrategy.massageResourceId(IpsContext, IBaseResource)
has modified it
-
-
Method Details
-
getSubject
Returns the subject Patient resource for the IPS being generated. Note that the Resource.id value may not match the ID of the resource stored in the repository ifIIpsGenerationStrategy.massageResourceId(IpsContext, IBaseResource)
has returned a different ID. UsegetSubjectId()
if you want the originally stored ID.- See Also:
-
getSubjectId
Returns the ID of the subject for the given IPS. This value should match the ID which was originally fetched from the repository. -
newSectionContext
public <T extends org.hl7.fhir.instance.model.api.IBaseResource> IpsSectionContext<T> newSectionContext(Section theSection, Class<T> theResourceType)
-