package
1.1.0
Repository: https://github.com/verily-src/fhirpath-go.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetIdentifierList takes a Resource and returns a list of Identifiers.
GroupResources organizes all resources by their underlying resource Type, and returns a map of the Type to the list of resources of that given type.
ID gets the ID of the specified resource as a string.
IdentityOf attempts to form a resource Identity object to the named resource.
IsType queries whether the given string names a Resource type.
New constructs a new resource from the input type, using the specified options to construct it.
NewCanonicalIdentity creates a canonicalIdentity based on the given url, version and fragment.
NewFromString attempts to construct a resource of the specified string name type, using the specified options to construct it.
NewIdentity attempts to create a new Identity object from a runtime-provided string resourceType name, and its id/versionID.
NewIdentityFromHistoryURL attempts to create a new Identity object from a runtime-provided history URL.
NewIdentityFromURL attempts to create a new Identity object from a runtime-provided URL.
NewOf constructs a new resource of the named T resource type, using the specified options to construct it.
NewType checks whether the string type name is a valid resource.Type instance.
Profiles is a helper for getting the fhir profiles of a resource in canonical form.
ProfileStrings is a helper for getting the fhir profiles of a resource in string form.
RemoveDuplicates finds all duplicates of resources -- determined by the same <resource>/<id>/<version-id> -- and removes them, returning an updated list of resources.
TypeOf gets the underlying type of the named resource.
Update modifies the input resource in-place with the specified options.
URI is a helper for getting the URI of a resource as a URI object.
URIString is a helper for getting the URI of a resource in string form.
VersionedURI is a helper for getting the URI of a resource as a URI object.
VersionedURIString is a helper for getting the URI of a resource in string form.
VersionETag pulls the "version" from the resource if it's an existing resource that was queried from a FHIR store; the version returned matches the ETag header returned by GET fhir-prefix/{resourceType}/{id} for this resource.
VersionID gets the version-ID of the specified resource as a string.
WithID returns a resource Option for setting the Resourec ID with the id of the provided string.
WithImplicitRules returns a resource Option for setting the Resource implicit rules with the provided string.
WithLanguage returns a resource Option for setting the Resource language to the code of the provided string.
WithMeta returns a resource Option for setting the Resource Meta with the specified meta entry.

# Constants

Account is the TypeSpecifier constant for the "Account" resource.
ActivityDefinition is the TypeSpecifier constant for the "ActivityDefinition" resource.
AdverseEvent is the TypeSpecifier constant for the "AdverseEvent" resource.
AllergyIntolerance is the TypeSpecifier constant for the "AllergyIntolerance" resource.
Appointment is the TypeSpecifier constant for the "Appointment" resource.
AppointmentResponse is the TypeSpecifier constant for the "AppointmentResponse" resource.
AuditEvent is the TypeSpecifier constant for the "AuditEvent" resource.
Basic is the TypeSpecifier constant for the "Basic" resource.
Binary is the TypeSpecifier constant for the "Binary" resource.
BiologicallyDerivedProduct is the TypeSpecifier constant for the "BiologicallyDerivedProduct" resource.
BodyStructure is the TypeSpecifier constant for the "BodyStructure" resource.
Bundle is the TypeSpecifier constant for the "Bundle" resource.
CapabilityStatement is the TypeSpecifier constant for the "CapabilityStatement" resource.
CarePlan is the TypeSpecifier constant for the "CarePlan" resource.
CareTeam is the TypeSpecifier constant for the "CareTeam" resource.
CatalogEntry is the TypeSpecifier constant for the "CatalogEntry" resource.
ChargeItem is the TypeSpecifier constant for the "ChargeItem" resource.
ChargeItemDefinition is the TypeSpecifier constant for the "ChargeItemDefinition" resource.
Claim is the TypeSpecifier constant for the "Claim" resource.
ClaimResponse is the TypeSpecifier constant for the "ClaimResponse" resource.
ClinicalImpression is the TypeSpecifier constant for the "ClinicalImpression" resource.
CodeSystem is the TypeSpecifier constant for the "CodeSystem" resource.
Communication is the TypeSpecifier constant for the "Communication" resource.
CommunicationRequest is the TypeSpecifier constant for the "CommunicationRequest" resource.
CompartmentDefinition is the TypeSpecifier constant for the "CompartmentDefinition" resource.
Composition is the TypeSpecifier constant for the "Composition" resource.
ConceptMap is the TypeSpecifier constant for the "ConceptMap" resource.
Condition is the TypeSpecifier constant for the "Condition" resource.
Consent is the TypeSpecifier constant for the "Consent" resource.
Contract is the TypeSpecifier constant for the "Contract" resource.
Coverage is the TypeSpecifier constant for the "Coverage" resource.
CoverageEligibilityRequest is the TypeSpecifier constant for the "CoverageEligibilityRequest" resource.
CoverageEligibilityResponse is the TypeSpecifier constant for the "CoverageEligibilityResponse" resource.
DetectedIssue is the TypeSpecifier constant for the "DetectedIssue" resource.
Device is the TypeSpecifier constant for the "Device" resource.
DeviceDefinition is the TypeSpecifier constant for the "DeviceDefinition" resource.
DeviceMetric is the TypeSpecifier constant for the "DeviceMetric" resource.
DeviceRequest is the TypeSpecifier constant for the "DeviceRequest" resource.
DeviceUseStatement is the TypeSpecifier constant for the "DeviceUseStatement" resource.
DiagnosticReport is the TypeSpecifier constant for the "DiagnosticReport" resource.
DocumentManifest is the TypeSpecifier constant for the "DocumentManifest" resource.
DocumentReference is the TypeSpecifier constant for the "DocumentReference" resource.
EffectEvidenceSynthesis is the TypeSpecifier constant for the "EffectEvidenceSynthesis" resource.
Encounter is the TypeSpecifier constant for the "Encounter" resource.
Endpoint is the TypeSpecifier constant for the "Endpoint" resource.
EnrollmentRequest is the TypeSpecifier constant for the "EnrollmentRequest" resource.
EnrollmentResponse is the TypeSpecifier constant for the "EnrollmentResponse" resource.
EpisodeOfCare is the TypeSpecifier constant for the "EpisodeOfCare" resource.
EventDefinition is the TypeSpecifier constant for the "EventDefinition" resource.
Evidence is the TypeSpecifier constant for the "Evidence" resource.
EvidenceVariable is the TypeSpecifier constant for the "EvidenceVariable" resource.
ExampleScenario is the TypeSpecifier constant for the "ExampleScenario" resource.
ExplanationOfBenefit is the TypeSpecifier constant for the "ExplanationOfBenefit" resource.
FamilyMemberHistory is the TypeSpecifier constant for the "FamilyMemberHistory" resource.
Flag is the TypeSpecifier constant for the "Flag" resource.
Goal is the TypeSpecifier constant for the "Goal" resource.
GraphDefinition is the TypeSpecifier constant for the "GraphDefinition" resource.
Group is the TypeSpecifier constant for the "Group" resource.
GuidanceResponse is the TypeSpecifier constant for the "GuidanceResponse" resource.
HealthcareService is the TypeSpecifier constant for the "HealthcareService" resource.
ImagingStudy is the TypeSpecifier constant for the "ImagingStudy" resource.
Immunization is the TypeSpecifier constant for the "Immunization" resource.
ImmunizationEvaluation is the TypeSpecifier constant for the "ImmunizationEvaluation" resource.
ImmunizationRecommendation is the TypeSpecifier constant for the "ImmunizationRecommendation" resource.
ImplementationGuide is the TypeSpecifier constant for the "ImplementationGuide" resource.
InsurancePlan is the TypeSpecifier constant for the "InsurancePlan" resource.
Invoice is the TypeSpecifier constant for the "Invoice" resource.
Library is the TypeSpecifier constant for the "Library" resource.
Linkage is the TypeSpecifier constant for the "Linkage" resource.
List is the TypeSpecifier constant for the "List" resource.
Location is the TypeSpecifier constant for the "Location" resource.
Measure is the TypeSpecifier constant for the "Measure" resource.
MeasureReport is the TypeSpecifier constant for the "MeasureReport" resource.
Media is the TypeSpecifier constant for the "Media" resource.
Medication is the TypeSpecifier constant for the "Medication" resource.
MedicationAdministration is the TypeSpecifier constant for the "MedicationAdministration" resource.
MedicationDispense is the TypeSpecifier constant for the "MedicationDispense" resource.
MedicationKnowledge is the TypeSpecifier constant for the "MedicationKnowledge" resource.
MedicationRequest is the TypeSpecifier constant for the "MedicationRequest" resource.
MedicationStatement is the TypeSpecifier constant for the "MedicationStatement" resource.
MedicinalProduct is the TypeSpecifier constant for the "MedicinalProduct" resource.
MedicinalProductAuthorization is the TypeSpecifier constant for the "MedicinalProductAuthorization" resource.
MedicinalProductContraindication is the TypeSpecifier constant for the "MedicinalProductContraindication" resource.
MedicinalProductIndication is the TypeSpecifier constant for the "MedicinalProductIndication" resource.
MedicinalProductIngredient is the TypeSpecifier constant for the "MedicinalProductIngredient" resource.
MedicinalProductInteraction is the TypeSpecifier constant for the "MedicinalProductInteraction" resource.
MedicinalProductManufactured is the TypeSpecifier constant for the "MedicinalProductManufactured" resource.
MedicinalProductPackaged is the TypeSpecifier constant for the "MedicinalProductPackaged" resource.
MedicinalProductPharmaceutical is the TypeSpecifier constant for the "MedicinalProductPharmaceutical" resource.
MedicinalProductUndesirableEffect is the TypeSpecifier constant for the "MedicinalProductUndesirableEffect" resource.
MessageDefinition is the TypeSpecifier constant for the "MessageDefinition" resource.
MessageHeader is the TypeSpecifier constant for the "MessageHeader" resource.
MolecularSequence is the TypeSpecifier constant for the "MolecularSequence" resource.
NamingSystem is the TypeSpecifier constant for the "NamingSystem" resource.
NutritionOrder is the TypeSpecifier constant for the "NutritionOrder" resource.
Observation is the TypeSpecifier constant for the "Observation" resource.
ObservationDefinition is the TypeSpecifier constant for the "ObservationDefinition" resource.
OperationDefinition is the TypeSpecifier constant for the "OperationDefinition" resource.
OperationOutcome is the TypeSpecifier constant for the "OperationOutcome" resource.
Organization is the TypeSpecifier constant for the "Organization" resource.
OrganizationAffiliation is the TypeSpecifier constant for the "OrganizationAffiliation" resource.
Parameters is the TypeSpecifier constant for the "Parameters" resource.
Patient is the TypeSpecifier constant for the "Patient" resource.
PaymentNotice is the TypeSpecifier constant for the "PaymentNotice" resource.
PaymentReconciliation is the TypeSpecifier constant for the "PaymentReconciliation" resource.
Person is the TypeSpecifier constant for the "Person" resource.
PlanDefinition is the TypeSpecifier constant for the "PlanDefinition" resource.
Practitioner is the TypeSpecifier constant for the "Practitioner" resource.
PractitionerRole is the TypeSpecifier constant for the "PractitionerRole" resource.
Procedure is the TypeSpecifier constant for the "Procedure" resource.
Provenance is the TypeSpecifier constant for the "Provenance" resource.
Questionnaire is the TypeSpecifier constant for the "Questionnaire" resource.
QuestionnaireResponse is the TypeSpecifier constant for the "QuestionnaireResponse" resource.
RelatedPerson is the TypeSpecifier constant for the "RelatedPerson" resource.
RequestGroup is the TypeSpecifier constant for the "RequestGroup" resource.
ResearchDefinition is the TypeSpecifier constant for the "ResearchDefinition" resource.
ResearchElementDefinition is the TypeSpecifier constant for the "ResearchElementDefinition" resource.
ResearchStudy is the TypeSpecifier constant for the "ResearchStudy" resource.
ResearchSubject is the TypeSpecifier constant for the "ResearchSubject" resource.
RiskAssessment is the TypeSpecifier constant for the "RiskAssessment" resource.
RiskEvidenceSynthesis is the TypeSpecifier constant for the "RiskEvidenceSynthesis" resource.
Schedule is the TypeSpecifier constant for the "Schedule" resource.
SearchParameter is the TypeSpecifier constant for the "SearchParameter" resource.
ServiceRequest is the TypeSpecifier constant for the "ServiceRequest" resource.
Slot is the TypeSpecifier constant for the "Slot" resource.
Specimen is the TypeSpecifier constant for the "Specimen" resource.
SpecimenDefinition is the TypeSpecifier constant for the "SpecimenDefinition" resource.
StructureDefinition is the TypeSpecifier constant for the "StructureDefinition" resource.
StructureMap is the TypeSpecifier constant for the "StructureMap" resource.
Subscription is the TypeSpecifier constant for the "Subscription" resource.
Substance is the TypeSpecifier constant for the "Substance" resource.
SubstanceNucleicAcid is the TypeSpecifier constant for the "SubstanceNucleicAcid" resource.
SubstancePolymer is the TypeSpecifier constant for the "SubstancePolymer" resource.
SubstanceProtein is the TypeSpecifier constant for the "SubstanceProtein" resource.
SubstanceReferenceInformation is the TypeSpecifier constant for the "SubstanceReferenceInformation" resource.
SubstanceSourceMaterial is the TypeSpecifier constant for the "SubstanceSourceMaterial" resource.
SubstanceSpecification is the TypeSpecifier constant for the "SubstanceSpecification" resource.
SupplyDelivery is the TypeSpecifier constant for the "SupplyDelivery" resource.
SupplyRequest is the TypeSpecifier constant for the "SupplyRequest" resource.
Task is the TypeSpecifier constant for the "Task" resource.
TerminologyCapabilities is the TypeSpecifier constant for the "TerminologyCapabilities" resource.
TestReport is the TypeSpecifier constant for the "TestReport" resource.
TestScript is the TypeSpecifier constant for the "TestScript" resource.
ValueSet is the TypeSpecifier constant for the "ValueSet" resource.
VerificationResult is the TypeSpecifier constant for the "VerificationResult" resource.
VisionPrescription is the TypeSpecifier constant for the "VisionPrescription" resource.

# Variables

ErrBadType is an error raised when a bad type is provided.
No description provided by the author
ErrMissingCanonicalURL is thrown when creating a canonical identity without having a URL.

# Structs

CanonicalIdentity is a canonical representation of a FHIR Resource.
Identity is a representation of a FHIR Resource's temporal instance.

# Interfaces

HasGetIdentifierList is a custom interface for duck typing resources that have a GetIdentifier method that returns a slice of Identifiers.
HasGetIdentifierSingle is a custom interface for duck typing resources that have a GetIdentifier method that returns a single Identifier.

# Type aliases

Option is an option that may be supplied to updates or creations of Resource types.
Type is a FHIR Resource type object.