
Package ca.uhn.fhir.jpa.ips.api
Class IpsContext
java.lang.Object
ca.uhn.fhir.jpa.ips.api.IpsContext
- Direct Known Subclasses:
IpsContext.IpsSectionContext
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionIpsContext
(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.newSectionContext
(IpsSectionEnum theSection, String 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 IpsContext.IpsSectionContext newSectionContext(IpsSectionEnum theSection, String theResourceType)
-