From f84f46f9e815e4c126c2cc3e5bcfe57564c66cb4 Mon Sep 17 00:00:00 2001 From: "A.J. Stein" Date: Mon, 26 Feb 2024 22:23:29 -0500 Subject: [PATCH] [WIP] Provisionally outline sections for #545 --- .../tutorials/5-constraints-has-cardinality/_index.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/website/content/tutorials/5-constraints-has-cardinality/_index.md b/website/content/tutorials/5-constraints-has-cardinality/_index.md index f540b6b7..65d5fa90 100644 --- a/website/content/tutorials/5-constraints-has-cardinality/_index.md +++ b/website/content/tutorials/5-constraints-has-cardinality/_index.md @@ -7,7 +7,7 @@ description: "" ## Introduction -In the previous tutorial, we enhanced the computer model and learned how to use constraints to customize specific field and flags' values by subsetting their data types or match certain patterns with regular expressions. In previous tutorials about constraints, we have learned multiple techniques to precisely control the values of fields and flags. But how do we control the minimum and maximum number of occurrences for assemblies, fields, and flags in document instance(s) with logical conditions using their own identifiers and values? How do we do this with related assemblies, fields, and flags co-occurring these document instance(s)? +In the previous tutorial, we enhanced the computer model and learned how to use constraints to customize specific fields' and flags' values by subsetting their data types or match certain patterns with regular expressions. In previous tutorials about constraints, we have learned multiple techniques to precisely control the values of fields and flags. But how do we control the minimum and maximum number of occurrences for assemblies, fields, and flags in document instance(s) with logical conditions using their own identifiers and values? How do we do this with related assemblies, fields, and flags co-occurring these document instance(s)? To control the minimum and maximum occurrence of different assemblies, fields, flags and/or their respective values, we can use `has-cardinality` constraints to meet this use case. @@ -574,4 +574,10 @@ computer: {{% /tab %}} {{< /tabs >}} +## Using has-cardinality constraints with identifiers + +## Using has-cardinality constraints with values + +## Using complex has-cardinality constraints with both + ## Conclusion