STARS Implementation Guide
0.3.0 - ci-build

This page is part of the Csiro Stars (v0.3.0: Releases Draft) based on FHIR (HL7® FHIR® Standard) v5.0.0. No current official version has been published yet. For a full list of available versions, see the Directory of published versions

Resource Profile: CSIRO STARS ServiceRequest Profile

Official URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-servicerequest Version: 0.3.0
Active as of 2025-06-03 Computable Name: CsiroStarsServiceRequestProfile

A Service Request, no changes yet

Usages:

Formal Views of Profile Content

Description of Profiles, Differentials, Snapshots and how the different presentations work.

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: bdystr-1, prr-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:submissionCategory S 1..1 CodeableConcept Submission Category
URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-submission-category
Binding: STARS Submission Category Value Set (required)
... identifier Σ 1..1 Identifier Identifiers assigned to this order
... replaces Σ 0..* Reference(CSIRO STARS ServiceRequest Profile) What request replaces
... requisition SΣ 1..1 Identifier Composite Request ID
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order +
Binding: RequestIntent (required): The kind of service request.
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... subject Σ 1..1 Reference(CSIRO STARS Patient Profile | Group | Location) Individual or Entity the service is ordered for
... authoredOn SΣ 1..1 dateTime Date request signed
... requester SΣ 0..1 Reference(CSIRO STARS Practitioner Profile) Who/what is requesting service
... reason SΣ 0..* CodeableReference(Condition | Observation | DiagnosticReport | DocumentReference | DetectedIssue) Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): SNOMED CT Condition/Problem/Diagnosis Codes
... supportingInfo S 0..1 CodeableReference(Resource) Additional clinical information
... specimen Σ 1..* Reference(CSIRO STARS Specimen Profile) Procedure Samples

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ServiceRequest.statusrequiredRequestStatus
http://hl7.org/fhir/ValueSet/request-status|5.0.0
From the FHIR Standard
ServiceRequest.intentrequiredRequestIntent
http://hl7.org/fhir/ValueSet/request-intent|5.0.0
From the FHIR Standard
ServiceRequest.priorityrequiredRequestPriority
http://hl7.org/fhir/ValueSet/request-priority|5.0.0
From the FHIR Standard
ServiceRequest.orderDetail.parameter.codeexampleServiceRequestOrderDetailParameterCode
http://hl7.org/fhir/ValueSet/servicerequest-orderdetail-parameter-code
From the FHIR Standard
ServiceRequest.reasonexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
bdystr-1errorServiceRequestbodyStructure SHALL only be present if bodySite is not present
: bodySite.exists() implies bodyStructure.empty()
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()

This structure is derived from ServiceRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest ServiceRequest
... language 0..0
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:submissionCategory S 1..1 CodeableConcept Submission Category
URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-submission-category
Binding: STARS Submission Category Value Set (required)
... identifier 1..1 Identifier Identifiers assigned to this order
... instantiatesCanonical 0..0
... instantiatesUri 0..0
... basedOn 0..0
... replaces 0..* Reference(CSIRO STARS ServiceRequest Profile) What request replaces
... requisition S 1..1 Identifier Composite Request ID
... status S 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
... intent S 1..1 code proposal | plan | directive | order +
... category 0..0
... priority S 0..1 code routine | urgent | asap | stat
... doNotPerform 0..0
... orderDetail 0..0
... quantity[x] 0..0
... subject 1..1 Reference(CSIRO STARS Patient Profile | Group | Location) Individual or Entity the service is ordered for
... occurrence[x] 0..0
... asNeeded[x] 0..0
... authoredOn S 1..1 dateTime Date request signed
... requester S 0..1 Reference(CSIRO STARS Practitioner Profile) Who/what is requesting service
... performerType 0..0
... performer 0..0
... reason S 0..* CodeableReference(Condition | Observation | DiagnosticReport | DocumentReference | DetectedIssue) Explanation/Justification for procedure or service
... insurance 0..0
... supportingInfo S 0..1 CodeableReference(Resource) Additional clinical information
... specimen 1..* Reference(CSIRO STARS Specimen Profile) Procedure Samples
... bodySite 0..0
... patientInstruction 0..0
... relevantHistory 0..0

doco Documentation for this format
NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: bdystr-1, prr-1
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:submissionCategory S 1..1 CodeableConcept Submission Category
URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-submission-category
Binding: STARS Submission Category Value Set (required)
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 1..1 Identifier Identifiers assigned to this order
... replaces Σ 0..* Reference(CSIRO STARS ServiceRequest Profile) What request replaces
... requisition SΣ 1..1 Identifier Composite Request ID
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order +
Binding: RequestIntent (required): The kind of service request.
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... code ΣC 0..1 CodeableReference(ActivityDefinition | PlanDefinition) What is being requested/ordered
Binding: ProcedureCodesSNOMEDCT (example): Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is preferred and a valueset using LOINC Order codes is available here.
... subject Σ 1..1 Reference(CSIRO STARS Patient Profile | Group | Location) Individual or Entity the service is ordered for
... focus Σ 0..* Reference(Resource) What the service request is about, when it is not about the subject of record
... encounter Σ 0..1 Reference(Encounter) Encounter in which the request was created
... authoredOn SΣ 1..1 dateTime Date request signed
... requester SΣ 0..1 Reference(CSIRO STARS Practitioner Profile) Who/what is requesting service
... location Σ 0..* CodeableReference(Location) Requested location
Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
... reason SΣ 0..* CodeableReference(Condition | Observation | DiagnosticReport | DocumentReference | DetectedIssue) Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): SNOMED CT Condition/Problem/Diagnosis Codes
... supportingInfo S 0..1 CodeableReference(Resource) Additional clinical information
... specimen Σ 1..* Reference(CSIRO STARS Specimen Profile) Procedure Samples
... bodyStructure ΣC 0..1 Reference(BodyStructure) BodyStructure-based location on the body
... note 0..* Annotation Comments

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ServiceRequest.statusrequiredRequestStatus
http://hl7.org/fhir/ValueSet/request-status|5.0.0
From the FHIR Standard
ServiceRequest.intentrequiredRequestIntent
http://hl7.org/fhir/ValueSet/request-intent|5.0.0
From the FHIR Standard
ServiceRequest.priorityrequiredRequestPriority
http://hl7.org/fhir/ValueSet/request-priority|5.0.0
From the FHIR Standard
ServiceRequest.codeexampleProcedureCodesSNOMEDCT
http://hl7.org/fhir/ValueSet/procedure-code
From the FHIR Standard
ServiceRequest.orderDetail.parameter.codeexampleServiceRequestOrderDetailParameterCode
http://hl7.org/fhir/ValueSet/servicerequest-orderdetail-parameter-code
From the FHIR Standard
ServiceRequest.locationexampleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
ServiceRequest.reasonexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
bdystr-1errorServiceRequestbodyStructure SHALL only be present if bodySite is not present
: bodySite.exists() implies bodyStructure.empty()
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()

Key Elements View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: bdystr-1, prr-1
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:submissionCategory S 1..1 CodeableConcept Submission Category
URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-submission-category
Binding: STARS Submission Category Value Set (required)
... identifier Σ 1..1 Identifier Identifiers assigned to this order
... replaces Σ 0..* Reference(CSIRO STARS ServiceRequest Profile) What request replaces
... requisition SΣ 1..1 Identifier Composite Request ID
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order +
Binding: RequestIntent (required): The kind of service request.
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... subject Σ 1..1 Reference(CSIRO STARS Patient Profile | Group | Location) Individual or Entity the service is ordered for
... authoredOn SΣ 1..1 dateTime Date request signed
... requester SΣ 0..1 Reference(CSIRO STARS Practitioner Profile) Who/what is requesting service
... reason SΣ 0..* CodeableReference(Condition | Observation | DiagnosticReport | DocumentReference | DetectedIssue) Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): SNOMED CT Condition/Problem/Diagnosis Codes
... supportingInfo S 0..1 CodeableReference(Resource) Additional clinical information
... specimen Σ 1..* Reference(CSIRO STARS Specimen Profile) Procedure Samples

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ServiceRequest.statusrequiredRequestStatus
http://hl7.org/fhir/ValueSet/request-status|5.0.0
From the FHIR Standard
ServiceRequest.intentrequiredRequestIntent
http://hl7.org/fhir/ValueSet/request-intent|5.0.0
From the FHIR Standard
ServiceRequest.priorityrequiredRequestPriority
http://hl7.org/fhir/ValueSet/request-priority|5.0.0
From the FHIR Standard
ServiceRequest.orderDetail.parameter.codeexampleServiceRequestOrderDetailParameterCode
http://hl7.org/fhir/ValueSet/servicerequest-orderdetail-parameter-code
From the FHIR Standard
ServiceRequest.reasonexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
bdystr-1errorServiceRequestbodyStructure SHALL only be present if bodySite is not present
: bodySite.exists() implies bodyStructure.empty()
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()

Differential View

This structure is derived from ServiceRequest

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest ServiceRequest
... language 0..0
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:submissionCategory S 1..1 CodeableConcept Submission Category
URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-submission-category
Binding: STARS Submission Category Value Set (required)
... identifier 1..1 Identifier Identifiers assigned to this order
... instantiatesCanonical 0..0
... instantiatesUri 0..0
... basedOn 0..0
... replaces 0..* Reference(CSIRO STARS ServiceRequest Profile) What request replaces
... requisition S 1..1 Identifier Composite Request ID
... status S 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
... intent S 1..1 code proposal | plan | directive | order +
... category 0..0
... priority S 0..1 code routine | urgent | asap | stat
... doNotPerform 0..0
... orderDetail 0..0
... quantity[x] 0..0
... subject 1..1 Reference(CSIRO STARS Patient Profile | Group | Location) Individual or Entity the service is ordered for
... occurrence[x] 0..0
... asNeeded[x] 0..0
... authoredOn S 1..1 dateTime Date request signed
... requester S 0..1 Reference(CSIRO STARS Practitioner Profile) Who/what is requesting service
... performerType 0..0
... performer 0..0
... reason S 0..* CodeableReference(Condition | Observation | DiagnosticReport | DocumentReference | DetectedIssue) Explanation/Justification for procedure or service
... insurance 0..0
... supportingInfo S 0..1 CodeableReference(Resource) Additional clinical information
... specimen 1..* Reference(CSIRO STARS Specimen Profile) Procedure Samples
... bodySite 0..0
... patientInstruction 0..0
... relevantHistory 0..0

doco Documentation for this format

Snapshot View

NameFlagsCard.TypeDescription & Constraints    Filter: Filtersdoco
.. ServiceRequest C 0..* ServiceRequest A request for a service to be performed
Constraints: bdystr-1, prr-1
... id Σ 0..1 id Logical id of this artifact
... meta Σ 0..1 Meta Metadata about the resource
... implicitRules ?!Σ 0..1 uri A set of rules under which this content was created
... contained 0..* Resource Contained, inline Resources
... Slices for extension 1..* Extension Extension
Slice: Unordered, Open by value:url
.... extension:submissionCategory S 1..1 CodeableConcept Submission Category
URL: https://starsapi.csiro.au/fhir-ig/stars/StructureDefinition/csiro-stars-submission-category
Binding: STARS Submission Category Value Set (required)
... modifierExtension ?!Σ 0..* Extension Extensions that cannot be ignored
... identifier Σ 1..1 Identifier Identifiers assigned to this order
... replaces Σ 0..* Reference(CSIRO STARS ServiceRequest Profile) What request replaces
... requisition SΣ 1..1 Identifier Composite Request ID
... status ?!SΣ 1..1 code draft | active | on-hold | revoked | completed | entered-in-error | unknown
Binding: RequestStatus (required): The status of a service order.
... intent ?!SΣ 1..1 code proposal | plan | directive | order +
Binding: RequestIntent (required): The kind of service request.
... priority SΣ 0..1 code routine | urgent | asap | stat
Binding: RequestPriority (required): Identifies the level of importance to be assigned to actioning the request.
... code ΣC 0..1 CodeableReference(ActivityDefinition | PlanDefinition) What is being requested/ordered
Binding: ProcedureCodesSNOMEDCT (example): Codes for tests or services that can be carried out by a designated individual, organization or healthcare service. For laboratory, LOINC is preferred and a valueset using LOINC Order codes is available here.
... subject Σ 1..1 Reference(CSIRO STARS Patient Profile | Group | Location) Individual or Entity the service is ordered for
... focus Σ 0..* Reference(Resource) What the service request is about, when it is not about the subject of record
... encounter Σ 0..1 Reference(Encounter) Encounter in which the request was created
... authoredOn SΣ 1..1 dateTime Date request signed
... requester SΣ 0..1 Reference(CSIRO STARS Practitioner Profile) Who/what is requesting service
... location Σ 0..* CodeableReference(Location) Requested location
Binding: ServiceDeliveryLocationRoleType (example): A location type where services are delivered.
... reason SΣ 0..* CodeableReference(Condition | Observation | DiagnosticReport | DocumentReference | DetectedIssue) Explanation/Justification for procedure or service
Binding: ProcedureReasonCodes (example): SNOMED CT Condition/Problem/Diagnosis Codes
... supportingInfo S 0..1 CodeableReference(Resource) Additional clinical information
... specimen Σ 1..* Reference(CSIRO STARS Specimen Profile) Procedure Samples
... bodyStructure ΣC 0..1 Reference(BodyStructure) BodyStructure-based location on the body
... note 0..* Annotation Comments

doco Documentation for this format

Terminology Bindings

PathConformanceValueSetURI
ServiceRequest.statusrequiredRequestStatus
http://hl7.org/fhir/ValueSet/request-status|5.0.0
From the FHIR Standard
ServiceRequest.intentrequiredRequestIntent
http://hl7.org/fhir/ValueSet/request-intent|5.0.0
From the FHIR Standard
ServiceRequest.priorityrequiredRequestPriority
http://hl7.org/fhir/ValueSet/request-priority|5.0.0
From the FHIR Standard
ServiceRequest.codeexampleProcedureCodesSNOMEDCT
http://hl7.org/fhir/ValueSet/procedure-code
From the FHIR Standard
ServiceRequest.orderDetail.parameter.codeexampleServiceRequestOrderDetailParameterCode
http://hl7.org/fhir/ValueSet/servicerequest-orderdetail-parameter-code
From the FHIR Standard
ServiceRequest.locationexampleServiceDeliveryLocationRoleType
http://terminology.hl7.org/ValueSet/v3-ServiceDeliveryLocationRoleType
ServiceRequest.reasonexampleProcedureReasonCodes
http://hl7.org/fhir/ValueSet/procedure-reason
From the FHIR Standard

Constraints

IdGradePath(s)DetailsRequirements
bdystr-1errorServiceRequestbodyStructure SHALL only be present if bodySite is not present
: bodySite.exists() implies bodyStructure.empty()
dom-2errorServiceRequestIf the resource is contained in another resource, it SHALL NOT contain nested Resources
: contained.contained.empty()
dom-3errorServiceRequestIf the resource is contained in another resource, it SHALL be referred to from elsewhere in the resource or SHALL refer to the containing resource
: contained.where((('#'+id in (%resource.descendants().reference | %resource.descendants().ofType(canonical) | %resource.descendants().ofType(uri) | %resource.descendants().ofType(url))) or descendants().where(reference = '#').exists() or descendants().where(ofType(canonical) = '#').exists() or descendants().where(ofType(canonical) = '#').exists()).not()).trace('unmatched', id).empty()
dom-4errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a meta.versionId or a meta.lastUpdated
: contained.meta.versionId.empty() and contained.meta.lastUpdated.empty()
dom-5errorServiceRequestIf a resource is contained in another resource, it SHALL NOT have a security label
: contained.meta.security.empty()
dom-6best practiceServiceRequestA resource should have narrative for robust management
: text.`div`.exists()
ele-1error**ALL** elementsAll FHIR elements must have a @value or children
: hasValue() or (children().count() > id.count())
ext-1error**ALL** extensionsMust have either extensions or value[x], not both
: extension.exists() != value.exists()
prr-1errorServiceRequestorderDetail SHALL only be present if code is present
: orderDetail.empty() or code.exists()

 

Other representations of profile: CSV, Excel, Schematron